Results 1 to 2 of 2
  1. #1

    Member Since
    Mar 20, 2007
    iPhone SDK NSURL help
    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?

  2. #2

    Member Since
    Mar 20, 2007
    Figured out the best way was to use the NSURLConnection class as it's asynchronous.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. iPhone SDK
    By Clokwise in forum Switcher Hangout
    Replies: 2
    Last Post: 06-02-2010, 09:12 PM
  2. iPhone SDK Development
    By Kiriashi in forum iOS and Apps
    Replies: 4
    Last Post: 01-29-2010, 08:02 PM
  3. iPhone SDK
    By fov in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 11-28-2009, 06:16 PM
  4. 3.1 beta SDK for iPhone
    By MrC in forum iPhone Hardware and Accessories
    Replies: 0
    Last Post: 07-16-2009, 03:38 AM
  5. iPhone SDK Help
    By GParadee in forum iOS and Apps
    Replies: 1
    Last Post: 01-27-2009, 03:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts