iOS 8.3 supported orientations crashs

前端 未结 4 1543
花落未央
花落未央 2020-12-16 04:56

I have a big problem with my app and iOS 8.3. I have many crashes with always the same error:

Terminating app due to uncaught exception \'UIApplica

4条回答
  •  我在风中等你
    2020-12-16 05:33

    A lot of other apps didn't crash with this bug, so I was wondering if there was something else in our app that accounted to this crash. I made sure iOS 8 would get the UIAlertController so it wouldn't crash but that doesn't help with third-party frameworks.

    Another engineer in our team eventually fixed it by doing this:

    - (NSUInteger)supportedInterfaceOrientations {
        return UIInterfaceOrientationMaskPortrait;
        // This used to be:
        //return UIInterfaceOrientationPortrait;
    }
    

提交回复
热议问题