This problem has just come up when I cleaned all targets and soft resetted (held home & power for about 10 seconds) my iPod Touch (2nd gen). It looks like the view might be rotated portrait.
Here is a pic of the problem:
alt text http://img7.imageshack.us/img7/5582/iphonescreenshot.png
The view is linked to a XIB file, and I setup landscape in interface builder. I also use
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>
in the info.plist file, and use
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
in the main view controller and the sub view controller.
My view hierarchy is: App delegate Window (Linked to App Delegate) -> MainViewController View (Linked to MainViewController) -> SubViewController View (Linked to SubViewController).
Thanks,
Niall.
EDIT: I m trying to achieve a full black full screen view. The width and height look OK in IB. (480,320)