Iphone TTPhotoViewController:禁用旋转(无方向横向)
在我的项目中,我使用Facebook API“three20”: 如何停用自动旋转?图像和缩略图应始终以纵向模式显示,而不是横向模式Iphone TTPhotoViewController:禁用旋转(无方向横向),iphone,objective-c,ios,three20,ttphotoviewcontroller,Iphone,Objective C,Ios,Three20,Ttphotoviewcontroller,在我的项目中,我使用Facebook API“three20”: 如何停用自动旋转?图像和缩略图应始终以纵向模式显示,而不是横向模式 谢谢 使用shouldAutorotateToInterfaceOrientation: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return NO; } 它起作用了!我在TTPhotoViewControl
谢谢 使用
shouldAutorotateToInterfaceOrientation:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return NO;
}
它起作用了!我在TTPhotoViewController.m和TTThumbsViewController.m中设置了“return NO;”!谢谢