Error when presenting view controller containing a WKWebView IOS9

69 Views Asked by At

I am testing an app on an iPad with iOS9 and whenever navigating a ViewController that contains a WKWebView it throws an error.

Thread 1: EXC_BAD_ACCESS (code=1, address=0x321)

This is not an issue with iOS13.

The code used to present the viewcontorller is as follows. It works for all view controllers in iOS13 but fails in iOS9

viewControllerMenu *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"mainMenu"];
viewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
viewController.modalPresentationStyle = UIModalPresentationCustom;
[self presentViewController: viewController animated:YES completion:nil]; ** Fails on this line **

If I change the storyboard ID to a view controller that does not have a WKWebView it is fine.

Any ideas?

0

There are 0 best solutions below