TimOliver / TOWebViewController

A view controller class for iOS that allows users to view web pages directly within an app.
http://www.timoliver.com.au/2014/07/27/towebviewcontroller-an-open-source-web-viewer-for-ios/
Other
1.48k stars 211 forks source link

Error when using tab bar controller #71

Closed qquestel closed 8 years ago

qquestel commented 9 years ago

Hi When i use a standard tab bar the towebviecontrooler loads fine... However if i use a storyboard tabbar controller i get the following error.

Can you assist?

screen shot 2015-10-02 at 10 09 49 pm

TimOliver commented 8 years ago

Hi there! Um.... I'm not too sure, sorry! I don't think I can really provide that sort of support. ^_^;;

Taking a stab in the dark, the only difference in doing it with a storyboard should be the init method that gets called. The one from the storyboard doesn't let you specify a URL at that point, so you'd have to manually set the URL for the controller somewhere else, possibly in the storyboard's segue.

Additionally, I've noticed [self initWithURL:add] in there. Using that code like that is incorrect, and may be yielding unpredictable results. If you're going to modify the library, setting self.url = add should do the trick.

Good luck!