Skip to content

Instantly share code, notes, and snippets.

@atomicbird
Created June 1, 2011 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomicbird/1001690 to your computer and use it in GitHub Desktop.
Save atomicbird/1001690 to your computer and use it in GitHub Desktop.
- (void)loadView {
NSLog(@"!!@#$!@#$!@#$!@#$!@#$!@#$!@#$!@#$");
self.wantsFullScreenLayout = YES;
CGRect f = CGRectZero;
f = [UIScreen mainScreen].applicationFrame;
UIView *container = [[UIView alloc] initWithFrame:f];
MainView *v = nil;
CGFloat border = 60.0;
CGFloat statusBarHeight = 20.0;
f = CGRectMake(border,statusBarHeight+border,768-(border*2), 1024-(border*2)-statusBarHeight);
v = [[MainView alloc] initWithFrame:f];
v.backgroundColor = [UIColor colorWithRed:0.0 green:1.0 blue:0.0 alpha:0.50];
v.autoresizingMask = UIViewAutoresizingNone;
v.autoresizesSubviews = NO;
[container addSubview:v];
self.view = container;
// self.view = v;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment