Note that there are some explanatory texts on larger screens.

plurals
  1. POMy iPhone app crashes after opening it from background and selecting Tab atIndex:0
    primarykey
    data
    text
    <p>I really can't figure this out. When I click a link to open Safari from within my app, browse through the webpage, then return to my app, I can open and browse two <code>tabBarItems</code> in my <code>UITabBar</code>. But, when I try to select the one <code>atIndex: 0</code>, I get an <code>EXEC_BAD_ACCESS</code> and the following :(. Can anyone help me figure out how to make this not happen? I currently don't have any code that executes in <code>will</code> or <code>didEnterBackground</code> or <code>Foreground</code>. None. So the problem must be in the <code>UIViewController</code> for the first tab. (Oh and I don't know why it's adding a subview. Related?). Thoughts?</p> <pre><code>Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x0109ba63 objc_msgSend + 23 1 UIKit 0x0031f3df -[UIView(Internal) _didMoveFromWindow:toWindow:] + 966 2 UIKit 0x0031f1b0 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 407 3 UIKit 0x0031f1b0 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 407 4 UIKit 0x0031f1b0 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 407 5 UIKit 0x0031f1b0 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 407 6 UIKit 0x0031f1b0 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 407 7 UIKit 0x0031dfc4 -[UIView(Hierarchy) _postMovedFromSuperview:] + 166 8 UIKit 0x00316dfc -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1080 9 UIKit 0x0031514f -[UIView(Hierarchy) addSubview:] + 57 10 UIKit 0x003725ac -[UITransitionView transition:fromView:toView:] + 563 11 UIKit 0x00371955 -[UITransitionView transition:toView:] + 129 12 UIKit 0x003a6383 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 459 13 UIKit 0x003a4d86 -[UITabBarController transitionFromViewController:toViewController:] + 64 14 UIKit 0x003a6b7e -[UITabBarController _setSelectedViewController:] + 263 15 UIKit 0x003a69ed -[UITabBarController _tabBarItemClicked:] + 352` </code></pre>
    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