//实现shouldAutorotateToInterfaceOrientation方法可以设置图片翻转
//直接return YES 可开启上下左右横向竖向的翻转
//一下代码只支持横向显示不支持竖向翻转
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
//return YES;
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
视图翻转问题
最新推荐文章于 2020-07-13 15:51:25 发布