cwRichardKim / RKSwipeBetweenViewControllers

Swipe between ViewControllers like in the Spotify or Twitter app with an interactive Segmented Control in the Navigation Bar
MIT License
1.67k stars 156 forks source link

Unbalanced calls to begin/end appearance transitions for ... #42

Open ankitkapasi opened 7 years ago

ankitkapasi commented 7 years ago

So far, loving the implementation @cwRichardKim (plus checked out your other projects too and excited to try those out). Thanks for putting this together. How long did it take you?

I'm noticing

Unbalanced calls to begin/end appearance transitions

for in the console when I dismiss a viewcontroller that was presented via

    [self presentViewController:destinationVC
                       animated:YES
                     completion:nil];

Any help on this one?

cwRichardKim commented 7 years ago

can you give me a little more context? I've never seen this error before. What are you trying to do with the view controller?

ankitkapasi commented 7 years ago

Thanks for helping @cwRichardKim

So I have 3 viewcontrollers - left, center, and right. I had them in a boring old navbar and then added this slick interface this week.

I just noticed this too: Warning: Attempt to present <MDAudioViewController: 0x1028dd200> on <MDTableViewController: 0x10280d000> whose view is not in the window hierarchy!

This is the presentation off the play button in a tableViewCell:

MDAudioViewController *destinationVC = [MDAudioViewController new];
  destinationVC.delegate = self;
    [self presentViewController:destinationVC
                       animated:YES
                     completion:nil];

Should I presenting VCs in another way? maybe off the new navController or pageViewController?

Once again thanks so much.