iOS6: supportedInterfaceOrientations not working (is invoked but the interface still rotates)

前端 未结 15 649
野趣味
野趣味 2020-11-29 04:09

In my app I have multiple views, some views need to support both portrait and landscape, while other views need to support portrait only. Thus, in the project summary, I ha

15条回答
  •  庸人自扰
    2020-11-29 04:22

    try change this code in AppDelegate.m

    //   self.window.rootViewController = self.navigationController;
    
        [window setRootViewController:navigationController];
    

    this is the complete answer

    shouldAutorotateToInterfaceOrientation not being called in iOS 6

    XD

提交回复
热议问题