Reputation: 27191
I settings my info.plist as below:
When I started my app, the orientation device have landscape mode, but my view not rotate to this orienatation.
I use method below for rotate orientation, but view not initial in landscape mode (after I have rotate my device in this case I had needed result - view rotate in landscape mode)
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
Upvotes: 0
Views: 581
Reputation: 519
I've had a couple of issues with this in the past. Basically if you just put the initial view controller there it bugs out handling as if it was in portrait mode. The fix i found for this was adding the view controller to a navigation controller.
See this question i posted for the full explanation
Upvotes: 1