Because I needed a more custom UIAlertView, I'm using. My problem ist that it enables the device rotation in any direction, even if I have disabled it.
Before the AlertView shows up, the Landscape Mode is deactivated, but when I call show, any direction is possible.
What's going on here? I don't have this behavior with a UIAlertView.
Go to @implementation TSAlertViewController
and check shouldAutorotateToInterfaceOrientation
@implementation TSAlertViewController
- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
return NO;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.