“Unbalanced calls to begin/end appearance transitions” warning when push a view in a modal way in XCode 4 with Storyboard
After some research on the web without success, I come here to ask you the question about my warning.
Actually, I have a view V1 with a navigation controller and I want to push a modal view V2 when V1 has finished loading.
So I use the
performSegueWithIdentifier method (I’m using storyboard).
Here is my code:
[self performSegueWithIdentifier:@"showConnexionViewSegue" sender:self];
And when I compile, I got this warning:
Unbalanced calls to begin/end appearance transitions for <UINavigationController: 0x6849b30>
Is anyone can help me ?
Thanks a lot in advance !
- Difference between framework and static library in xcode4, and how to call them
- Xcode 4.4 & 4.5 freezing on project close
- Adding Unit Tests to an already existing project?
- How to include static libraries which have same names for OBJECT files within them?
- openssl libs in Xcode 4
- iPhone - Cannot run apps from XCode on iOS 5.0.1 device, since iOS update from 5.0
4 Solutions Collect From Internet About ““Unbalanced calls to begin/end appearance transitions” warning when push a view in a modal way in XCode 4 with Storyboard”
It sounds like you may be performing the segue in
-viewWillAppear: thus generating two
-viewWillAppear: messages without 2 corresponding
Try performing the segue in
I had this problem, but what I had done is on a
UIViewController I had linked a Segue from a
UIButton and also coded it into a
nextBtnPressed: function, so I was actually pushing two new
UIViewControllers on the one button press. Limiting it to just the one segue fixed it. But it took some investigating to see that I had done this double up.
‘Unbalanced calls to begin/end appearance transitions for ‘
Says an animation is started before the last related animation isnt done.
So, are you popping any view controller before pushing the new one ?
Or may be popping to root ? if yes try doing so without animation
i.e. [self.navigationController popToRootViewControllerAnimated:NO];
And see if this resolves the issue, In my case this did the trick.
The reasons for this are manifold and are very specific to the context and the programming. For example, what I was doing was
- initialising a sound file, playing it (asynchronously) for 1.4 seconds,
- making an image move across the screen using animation timed to last 1.4 seconds and,
- with a timer set to 1.4 seconds after step 2, pushing a viewcontroller.
What i discovered is that if I DO NOT have the instructions for these 3 steps one after the other (if I mix them up), then I get the error “Unbalanced calls…”. Also, if I time the push of the viewcontroller to less than 1.4 seconds, I get the message as well.
So, check that the sequence and timing of your program instructions are correct.
- Inserting a New Cell Into A UICollectionView
- App using UIImagePickerController freezes when selecting “Use Photo” after taking a photo
- What to check in order to support the iPhone 5's longer screen?
- Reusing cell doesn't work well – TableView
- Why do I need to cast before a method of an item of a NSArray can be called?
- Prohibit rotation in iOS 8 for UIModalPresentationCustom modalPresentationStyle
- How to write Init method in Swift
- UITableViewRowAction title as image icon instead of text
- iOS Simulator to test website on Mac
- Placing calls to super?
- Facebook ios sdk 3.0 active session FBiOSSDK error2
- Why is viewDidUnload called less often than viewDidLoad?
- PaintCode StyleKit Swift 3.0 Error with CGGradient
- UIScrollview content size when orientation changes
- NSDate change time zone