Quote:
Originally Posted by vosens
DevTeamOfOne,
Your code to create a tab controller with navigation controllers within it works great! I have one question. I have a tab bar controller where one of my tabs (not the initial view) is a UIWebView.
How can I have the webView load a URL without having to activate its tab and click a button. Do you know how I can load the request from the appDelegate?
You're the man.
|
Well, This may seem like a simplistic way... send it a message
[[yourWebViewController webView] loadRequest

NSURLRequest *)request];
simple? Just put this in the App Delegate when you want to load the page
Make sure that your UIWebView is a property of your viewcontroller first
Make sure you make yourviewcontroller a persistent property only released at dealloc if you want to load the url at any time.