TTWebController自动旋转到横向

我似乎无法让我的
TTWebController
自动旋转。我的
UITabBar
子类在我的所有视图中都响应
shouldAutorotateToInterfaceOrientation
,除了我的
TTWebController
子类。该类响应自己,但即使我返回YES也不会旋转。 这就是我的
TTWebController
子类的样子: http://snipt.org/wpnM 这就是我在
UITabBar
子类中测试的内容:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
NSLog(@"shouldAutorotateToInterfaceOrientation: %@", [[TTNavigator navigator] visibleViewController]);
if ([[[TTNavigator navigator] visibleViewController] isKindOfClass:[TTWebController class]]) {
    return YES;
}

// if you're in the "more..." tab and the topViewController is a TTWebController
// Note: this is required because of a Three20 bug where [[TTNavigator navigator] visibleViewController]
// doesn't work properly if you're in the "more..." tab
if ([self.moreNavigationController.topViewController isKindOfClass:[TTWebController class]]) {
    return YES;
}

// Still here? Return YES only if portrait
return (interfaceOrientation == UIDeviceOrientationPortrait);
}
// Stefan     
已邀请:

要回复问题请先登录注册