New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

iPhone SDK NSURL help

Post Reply New Thread Subscribe

Thread Tools

Member Since: Mar 20, 2007
Posts: 46
ukdmbfan is on a distinguished road

ukdmbfan is offline
I've got a fairly simple test app setup that has two views, one which draws a loading screen (simply a view with a label) which then loads and draws another view if it gets a response from an NSURL request.

My problem is that no views are drawn until the NSURL request completes, that is you never get to see the loading screen view at all, it simply shows a black screen for a little bit (while the URL responds) then jumps straight to the second view.

I've got the NSURL code embedded within the viewDidLoad method of the first view controller, was just wondering if anyone could give me some advice or point me to a tutorial on correctly getting the view to draw first, then wait for the NSURL response. Is there, for example, something within IB that will fire a method once the view exists and is drawn?
QUOTE Thanks

Member Since: Mar 20, 2007
Posts: 46
ukdmbfan is on a distinguished road

ukdmbfan is offline
Figured out the best way was to use the NSURLConnection class as it's asynchronous.
QUOTE Thanks

Post Reply New Thread Subscribe

« Not able to enable build option in Xcode 1.5 | How to support Disk Arbitration Framework in 10.3.9 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 07:26 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?