mardi 27 janvier 2015

WKWebview fail to open WKActionsSheet on presented UINavigationController

I have a problem with my WKWebViewController.


I use this code to present:



SRWebWKViewController *webcontroller = [self.storyboard instantiateViewControllerWithIdentifier:@"SRWebViewControllerWKWebview"];
UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:webcontroller];
[self presentViewController:navController animated:YES completion:nil];


It is presented correctly, but when I press on any link I get this error:



Warning: Attempt to present <WKActionSheet: 0x7fc4f4c6f5e0> on <UINavigationController: 0x7fc4f4b9d9e0> whose view is not in the window hierarchy!


I searched a lot on the web but I can not find any solution that solves my problem


Thanks in advance





Aucun commentaire:

Enregistrer un commentaire