UIImagePickerController reloads view after its dismissed?

后端 未结 3 1773
鱼传尺愫
鱼传尺愫 2021-01-24 00:00

I create the picker:

UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.sourceType =  UIImagePickerControllerSourceTypeCa         


        
3条回答
  •  独厮守ぢ
    2021-01-24 00:41

    Your app probably received a memory warning, which caused all view controllers who are not displayed on screen to unload their views. This is quite normal while you are in the image picker because the camera needs a lot of memory. The moment you dismiss the image picker your view controller reloads its view.

    As this is perfectly normal behavior, your app must deal with this situation correctly.

提交回复
热议问题