Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not sure entirely what the problem is but I assume that when you go from view2 to view3 it 'hangs' on view2 until the image is loaded before actually opening view3 to show the loading screen, right?</p> <p>If that's the case, then what you want to do is load your image in a different thread so that the loading doesn't block the view3 from showing the loading screen.</p> <p>Have a look at <a href="http://developer.apple.com/iphone/library/documentation/cocoa/reference/foundation/Classes/NSThread_Class/Reference/Reference.html" rel="nofollow noreferrer">NSThread</a> (although there are cleaner/better ways to do this).</p> <p>Basically do this in view3's controller:</p> <pre><code>- (void) viewDidLoad { // &lt;First, show your 'Loading...' screen here&gt; // Then create a thread to load the image: [NSThread detachNewThreadSelector:@selector(loadImage) toTarget:self withObject:nil]; } // Then somewhere in the same class define the loading method: - (void)loadImage { // Remember to create a new autorelease pool for this thread. // &lt;Load your image here&gt; // When image is done loading, call the main thread [self performSelectorOnMainThread:@selector(imageDoneLoading) withObject:nil waitUntilDone:YES]; } // Then define the method to call when the image is done - (void) imageDoneLoading { // Hide the 'Loading...' screen. } </code></pre> <p>If this is not the problem you have, then please provide more detail as to what is actually happening and what the problem is.</p> <p>Good luck.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload