Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-27-2008, 12:31 PM   #70 (permalink)
DevTeamOfOne
New Member
 
Join Date: Aug 2008
Posts: 361
DevTeamOfOne is on a distinguished road
Default

Quote:
Originally Posted by vosens View Post
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] loadRequestNSURLRequest *)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.

Last edited by DevTeamOfOne; 08-27-2008 at 12:33 PM.
DevTeamOfOne is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,427
Threads: 94,023
Posts: 402,573
Top Poster: BrianSlick (7,978)
Welcome to our newest member, shakiraeb60
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:42 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.