TTPhotoViewController:取消旋转(无取向横向)

问题描述:

在我的项目,我使用Facebook的API“three20”:https://github.com/facebook/three20/TTPhotoViewController:取消旋转(无取向横向)

我怎样才能取消自动旋转?图像和缩略图应始终以纵向显示,而不是横向模式。

谢谢!

使用shouldAutorotateToInterfaceOrientation:

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

它的工作原理!我设置了“返回否;”在TTPhotoViewController.m和TTThumbsViewController.m中!谢谢! – Manni 2011-01-24 18:37:46