
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 0.53 KB | hits: 8 | expires: Never
height of UIViewController is set to 460
- (void)viewDidLoad
{
// View setup
// Ensure the view will keep filling its parent
// when the parent view resizes (e.g. device rotation).
self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
}
- (void)viewWillAppear:(BOOL)animated
{
// Force to fill the parent once the view is about to be shown.
self.view.frame = self.view.superview.bounds;
}
[application setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];