RKSwipeBetweenViewControllers icon indicating copy to clipboard operation
RKSwipeBetweenViewControllers copied to clipboard

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

Open ankitkapasi opened this issue 7 years ago • 2 comments

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?

ankitkapasi avatar Apr 07 '17 18:04 ankitkapasi

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?

cwRichardKim avatar Apr 07 '17 19:04 cwRichardKim

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.

  • Inside the centerVC, i have a tableView with several options for the user to open new screens. One of which is an audioPlayer screen, another is to manage their account, and so on.
  • On a button click inside a custom UITableViewCell, it presents the destinationVC via a delegate pattern.
  • While on the destinationVC, the user is able to do their task,
  • Then the user closes which dismisses the destinationVC (via delegate) and then returns to the centerVC.

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.

ankitkapasi avatar Apr 07 '17 19:04 ankitkapasi