Skip to content

Commit

Permalink
Autoresize mask for landscape / portrait rotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
y0n3l committed Oct 18, 2011
1 parent 5aeca12 commit c901b87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LGViewHUD.m
Expand Up @@ -25,6 +25,9 @@ - (id)initWithFrame:(CGRect)frame {

self = [super initWithFrame:frame];
if (self) {

self.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin |
UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
// Initialization code.
double offset = frame.size.height/4.0;
topLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, offset/3.0, frame.size.width, offset/2)];
Expand Down

0 comments on commit c901b87

Please sign in to comment.