TTPostController不会旋转

时间:2012-04-26 13:38:50

标签: objective-c ios xcode three20 autorotate

首先,我很抱歉因为我的英语不好:)这是我创建新TTPostController的代码

postController = [[TTPostController alloc] init];
postController.delegate = self;
self.popupViewController = postController;
postController.superController = self;
[postController showInView:self.view animated:YES]; 

如果我不旋转设备,它运行正常

http://i.stack.imgur.com/HBmpn.png

但是当我旋转设备时,它看起来像这样:

http://i.stack.imgur.com/Nt7lq.png

(抱歉,我没有足够的信誉发布图片)

有谁知道如何修复它?

修改 问题已解决,我编写了自己的库,如TTPostController:D

1 个答案:

答案 0 :(得分:0)

您应该继承TTPostController并覆盖should autorotate方法:

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