Thursday, June 28, 2012

Unbalanced calls to begin/end appearance transitions for

After adding a view controller using presentModalViewController and dismissing it with dismissModalViewControllerAnimated I started receiving a message saying "Unbalanced calls to begin/end appearance transitions for...".  It turns out there are a lot of reasons for this message (not an error or warning).  The solution that fixed it for me was to initialize the new view controller by calling initWithNibName instead of just init.  The documentation says init calls initWithNibName, but I guess Xcode has its own rules too.


keywords: presentModalViewController "Unbalanced calls to begin/end appearance transitions"
source: http://stackoverflow.com/questions/7886096/unbalanced-calls-to-begin-end-appearance-transitions-for-uitabbarcontroller-0x

No comments:

Post a Comment