iPhone/iPad App Orientation

后端 未结 4 1314
天命终不由人
天命终不由人 2021-01-22 10:24

The iPhone version of my app supports UIDeviceOrientationPortraitUpsideDown and UIDeviceOrientationPortrait, but the iPad version supports all Orientat

4条回答
  •  既然无缘
    2021-01-22 10:53

    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    

    This method is deprecated in IOS 6 so instead of it you can use below method.

    -(NSUInteger)supportedInterfaceOrientations
    {
        return UIInterfaceOrientationMaskAll;
    }
    

    return orientation according to you.

提交回复
热议问题