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

Untitled

By: a guest on May 25th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 12  |  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.  
  2. - (void) willAnimateRotationToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation
  3.                                                                                   duration: (NSTimeInterval)duration
  4. {      
  5.         NSString *nibName = UIInterfaceOrientationIsPortrait(toInterfaceOrientation)
  6.                 ? kPortraitViewNibName
  7.                 : kLandscapeViewNibName;
  8.        
  9.         [baseView removeFromSuperview];
  10.         [[NSBundle mainBundle] loadNibNamed:nibName owner:self options:nil];
  11.         [self.view addSubview:baseView];
  12. }