1、創(chuàng)建一個UIAlertController的category
2拷沸、重寫這兩個方法
- (BOOL)shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
3色查、再import這個category
4、完成
1、創(chuàng)建一個UIAlertController的category
2拷沸、重寫這兩個方法
- (BOOL)shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
3色查、再import這個category
4、完成