iOS设备竖屏 ,禁止旋转

-(BOOL)shouldAutorotate{

return NO;
}

- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return (toInterfaceOrientation == UIInterfaceOrientationMaskPortrait);

}


- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;

}

你可能感兴趣的:(iOS设备竖屏 ,禁止旋转)