Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The reason it isn't being creating on the main thread is one of 2 options</p> <ol> <li>The View that creates it lives on one of the background threads</li> <li>You are are calling <code>performSelectorInBackground:</code> to create your view</li> </ol> <p>To perform a function on the Main Thread call <code>performSelectorOnMainThread:</code></p> <p>Off-topic: If the function requires more then 1 parameter, change it to an NSDictionary and load all of your settings into the Dictionary and pass it in eg</p> <pre><code>NSDictionary *params = ...... //load your parameters into here [myMapView performSelectorOnMainThread:@selector(initMap:) withObject:params waitUntilDone:YES]; </code></pre> <p>Also read the following <a href="http://www.google.com.au/url?sa=t&amp;rct=j&amp;q=forcing%20a%20call%20on%20the%20main%20thread%20iOS&amp;source=web&amp;cd=3&amp;ved=0CC0QFjAC&amp;url=http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html&amp;ei=5EkMT_r3GIiaiQeEop36BQ&amp;usg=AFQjCNFXoxOJXag9JgBwIeIL7BYeGExjfQ&amp;cad=rja" rel="nofollow">First</a> and <a href="http://www.google.com.au/url?sa=t&amp;rct=j&amp;q=forcing%20a%20call%20on%20the%20main%20thread%20iOS&amp;source=web&amp;cd=4&amp;ved=0CDUQFjAD&amp;url=http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html&amp;ei=5EkMT_r3GIiaiQeEop36BQ&amp;usg=AFQjCNE17Vky3OsDv6jcESIVf1Hu6qB8aw&amp;cad=rja" rel="nofollow">Second</a> to get a better understanding of multithreading in iOS</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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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