Reputation: 510
Hellow i have a question about the rotation on iPad i have search but i have not found the correct awnser.
in the iPad app i can rotate to all interface orientations when i open a special overlay i will lock the interface orientacion to lanscape and as long as the overlay is open the application should not rotate. When i close this overlay the rotation should be enabled.
i hope someone can help me
Upvotes: 1
Views: 700
Reputation: 1564
Yes, you can achieve that. I have not tested this code, but I think it will work.
- (BOOL)shouldAutorotateToInterfaceOrientation(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations.
if (showing_OVERLAY == YES) {
return NO;
}
return YES;
}
Upvotes: 1