SWRevealViewController
SWRevealViewController copied to clipboard
Application going to initial viewController when navigating to gallery from WkWebView
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.
Then present the image picker controller from the front view controller
The calling for the UIImagePickerController is done from the HTML page in WkWebView, not from the mobile code.
How do you present it? Can you show some part of code?
If I understood you want to show the UIImagePickerController when tou tap on a link in the WKWebView?