屏幕自动旋转的问题

来源:互联网 发布:ug8.0加工编程视频 编辑:程序博客网 时间:2024/05/05 19:05
    FYHomeViewController *home = [[FYHomeViewController alloc] init];
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:home];
    [nav setNavigationBarHidden:YES];
    self.window.rootViewController = nav;

   启动页面的跳转,在UIViewController中一直不回调
- (BOOL) shouldAutorotate {
    NSLog(@"shouldAutorotate。。。。执行了");
    return NO;
}  此方法,这是为什么?

我用 [self presentModalViewController:comeTable animated:YES]; 这种模式的跳转到可以执行shouldAutorotate的方法,大神么指点?
0 0