Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.53 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. height of UIViewController is set to 460
  2. - (void)viewDidLoad
  3. {
  4.     // View setup
  5.  
  6.     // Ensure the view will keep filling its parent
  7.     // when the parent view resizes (e.g. device rotation).
  8.     self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
  9. }
  10.  
  11.  
  12. - (void)viewWillAppear:(BOOL)animated
  13. {
  14.     // Force to fill the parent once the view is about to be shown.
  15.     self.view.frame = self.view.superview.bounds;
  16. }
  17.        
  18. [application setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];