Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After a lot of experimenting with my application and looking into Facebook SDK source I realized 3 things:</p> <ol> <li><p>Creating a <code>SLComposeViewController</code> by yourself doesn't help. Facebook SDK is pretty simple in this, it just creates the controller exactly like the code in the answer with bonus.</p></li> <li><p>When you are authorizing the FB session, your application is deactivated once or more times. This is caused by the permission confirmation alerts appearing.</p></li> <li><p>The <code>UIRemoteViewController</code> is actually the <code>SLComposeViewController</code> which is run in a different process.</p></li> </ol> <p>What caused my error?</p> <ol> <li>User confirms FB permissions</li> <li>This triggers <code>applicationDidBecomeActive:</code></li> <li>It also triggers FB callback to present the dialog.</li> <li>My <code>applicationDidBecomeActive:</code> was doing something with the UI what was not supposed to be done when the FB dialogs were appearing (tirggering a table reload).</li> </ol> <p>Also, there is another thing to be careful of - the handler of <code>presentShareDialogModallyFrom...</code> is not called on any particular thread (see <code>SLComposeViewController</code> docs). That means that you should use <code>dispatch_async(dispatch_get_main_queue(), ...)</code> from the handler if you are updating UI from it.</p> <p>EDIT: Obviously, the previous steps fixed some crashes but one of the crashes was not solved. After a lot of googling and searching Apple Developer forums, I think there is a bug in iOS 6 connected with Remote Controllers and using <code>UIAppearance</code>, especially the appearance of <code>UINavigationBar</code>. I am currently removing the use of <code>UIApperance</code> from my app.</p>
    singulars
    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. 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