UIImagePickerController camera view rotating strangely on iOS 8 (pictures)

后端 未结 12 1479
我寻月下人不归
我寻月下人不归 2020-12-07 16:34

I have a very simple application: - All orientations are permitted with only a button on a screen - The button show a UIImagePickerController (to take a photo)

12条回答
  •  悲&欢浪女
    2020-12-07 17:34

    I had the same issue and after getting back to basics and creating a new project which actually worked.. I tracked it down to;

    -(void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator
    {
        // Had forgot to call the following..
        [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
    }
    

    Hope it helps.

提交回复
热议问题