I am brand new to iPhone programming, but I've done a few apps from my book, so I may know how to fix it. From what I can tell, it looks like you aren't supporting the landscape left orientation, as in the following code:
Code:
@implementation ViewController
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
Try changing the last line to the following, or simply rotating the simulator the other way:
Code:
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
Or I could be completely wrong.
If that doesn't work, I'll be back in a bit, and I'll see what the book had to say about the rotating view app.