iphone - TTPhotoViewController:停用旋转(无方向横向)

标签 iphone objective-c ios three20 ttphotoviewcontroller

在我的项目中,我使用 Facebook API“third20”:https://github.com/facebook/three20/

如何停用自动旋转?图像和缩略图应始终以纵向显示,而不是横向模式。

谢谢!

最佳答案

使用shouldAutorotateToInterfaceOrientation:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return NO;
}

关于iphone - TTPhotoViewController:停用旋转(无方向横向),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4785526/

相关文章:

iphone - iOS UIWebView 中的 Facebook 评论

iphone - 如何在 iOS 上使用 Dropbox API 响应成功登录?

ios - NSMutableDictionary 对键中的值进行排序

iphone - 使用 CAAnimation 制作图像动画

iphone - 代码 : lazy loading images from image data in core data

ios - 我可以在 Collection View 中的后续单元格之间添加延迟并为每个单元格设置动画吗

objective-c - 如何在apple Watch App中模拟Local Notification?

objective-c - 弹出错误 - [UIPopoverController dealloc] 在弹出窗口仍然可见时到达

ios - Swift - 基于键的映射字典

ios - Sprite Kit SKNode命中区域