dzenbot / DZNWebViewController

A simple web browser for iPhone & iPad with similar features than Safari's
https://www.cocoacontrols.com/controls/dznwebviewcontroller
MIT License
1.06k stars 181 forks source link

EXC_BAD_ACCESS #65

Open lumjona1 opened 7 years ago

lumjona1 commented 7 years ago

I'm getting an EXC_BAD_ACCESS at the DZNWebViewController.m viewDidLoad.

I copied your sample code into my MainView ViewDidLoad which has a Nav Controller as the root to a ViewController. Also, the DZNWebNavigationPromptAll doesn't exist, I had to comment it out. Any suggestions?

NSURL *URL = [NSURL URLWithString:@"http://www.google.com/"];

DZNWebViewController *WVC = [[DZNWebViewController alloc] initWithURL:URL];
UINavigationController *NC = [[UINavigationController alloc] initWithRootViewController:WVC];

WVC.supportedWebNavigationTools = DZNWebNavigationToolAll;
WVC.supportedWebActions = DZNWebActionAll;
//WVC.webNavigationPrompt = DZNWebNavigationPromptAll;
WVC.showLoadingProgress = YES;
WVC.allowHistory = YES;
WVC.hideBarsWithGestures = YES;