UIImagePickerController reloads view after its dismissed?

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

I create the picker:

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


        
3条回答
  •  渐次进展
    2021-01-24 00:46

    I had a similar issue with this, I was displaying a popup during a long press gesture. It appeared as though the modal was not dismissed after the image was selected. However, the long press gesture event gets called several times, so a new popup was being displayed for every event. In my gesture handler I do something like this as to fix:

    if (![imagePickerPopoverController isPopoverVisible]){
       //show pop-up etc
    }
    

提交回复
热议问题