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

被折叠的 条评论
为什么被折叠?



