John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 987 forks source link

Application going to initial viewController when navigating to gallery from WkWebView #752

Open jprossardalia opened 7 years ago

jprossardalia commented 7 years ago

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.

iDevelopper commented 7 years ago

Then present the image picker controller from the front view controller

jprossardalia commented 7 years ago

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

iDevelopper commented 7 years ago

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

iDevelopper commented 7 years ago

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