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

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 17  |  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. Understanding method returning BOOL by using !=
  2. -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  3. {
  4.     // Return YES for supported orientations
  5.     return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
  6. }
  7.        
  8. -    (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
  9. {
  10.     // Return YES for supported orientations
  11.     if (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown)
  12.         return YES;
  13. }