TTThumbView/TTPhotoView没有自动旋转 [英] TTThumbView/TTPhotoView no autorotation

查看:55
本文介绍了TTThumbView/TTPhotoView没有自动旋转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我尝试使用TTphotoView,因此在ViewController中,我用我的navigationController推送TTphotoView,如下所示:

In my app I try to use the TTphotoView, so in a ViewController I push the TTphotoView with my navigationController like this:



if(self.photoViewController == nil {

  PhotoViewController *viewController = [[PhotoViewController alloc] init];
  self.photoViewController = viewController;
  viewController.hidesBottomBarWhenPushed = YES;
  [viewController release];
}
[self.navigationController pushViewController:self.photoViewController animated:YES];
[self.navigationController  dismissModalViewControllerAnimated:YES]


问题是,当用户旋转PhotoViewController上的设备时,什么也没发生.

the problem is when the user rotate the device on the PhotoViewController nothing happen.

我不敢相信人们没有同样的问题.如果有人在自己的导航中使用photoView而不是TTNavigation在他的应用程序中,他能否告诉我他是如何推动ViewController的?

EDIT : I can't believe people didn't have the same problem. If someone use the photoView in his application with his own navigation and not the TTNavigation can he tell me how did he push the ViewController?

推荐答案

我遇到了同样的问题.

我不知道为什么,但是three20代码中的TTScrollView deviceOrientationDidChange方法被注释掉了!如果取消注释,它将起作用.

I don't know why but TTScrollView deviceOrientationDidChange method in three20 code is commented out! If you uncomment it, it will work.

在此处查看代码: http://github.com/facebook/three20/blob/master/src/TTScrollView.m

这篇关于TTThumbView/TTPhotoView没有自动旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆