SWRevealViewController icon indicating copy to clipboard operation
SWRevealViewController copied to clipboard

Application going to initial viewController when navigating to gallery from WkWebView

Open jprossardalia opened this issue 7 years ago • 4 comments

Hi, I'm facing this issue in iPhone where whenever the action for UIImageViewPicker is called from the WkWebView the app goes to initial viewController while giving this message
2017-11-04 09:15:27.318 ConnektHub[36156:2987735] Warning: Attempt to present <UIImagePickerController: 0x7fb2d58d3c00> on <SWRevealViewController: 0x7fb2d584ce00> whose view is not in the window hierarchy!

The WkWebView is in the frontViewController.

jprossardalia avatar Nov 04 '17 03:11 jprossardalia

Then present the image picker controller from the front view controller

iDevelopper avatar Nov 04 '17 08:11 iDevelopper

The calling for the UIImagePickerController is done from the HTML page in WkWebView, not from the mobile code.

jprossardalia avatar Nov 04 '17 08:11 jprossardalia

How do you present it? Can you show some part of code?

iDevelopper avatar Nov 04 '17 08:11 iDevelopper

If I understood you want to show the UIImagePickerController when tou tap on a link in the WKWebView?

iDevelopper avatar Nov 04 '17 16:11 iDevelopper