- (UIInterfaceOrientationMask)supportedInterfaceOrientations {//横竖屏的限制
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight ;
}else{
return UIInterfaceOrientationMaskPortrait;
}
}
网友评论