您的位置:首页 > 移动开发 > IOS开发

iOS自动旋转问题

2016-07-04 16:38 447 查看
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{   return (toInterfaceOrientation == UIInterfaceOrientationPortrait);    
}

- (BOOL)shouldAutorotate
{    
  return NO;
 }
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{    
 return UIInterfaceOrientationMaskPortrait;//只支持这一个方向(正常的方向)    
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: