title: UIDevice Orientation
body: <p>I have the following code in a method. When I run this in the simulator the debugger skips right over the code?? What am I missing?</p>
  
  <pre><code>if (([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft) || 
          ([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRight)) 
  {       
  
  } else {
  
  }
  </code></pre>