1、创建一个UIAlertController的category
2、重写这两个方法
- (BOOL)shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
3、再import这个category
4、完成
1、创建一个UIAlertController的category
2、重写这两个方法
- (BOOL)shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
3、再import这个category
4、完成