Unbalanced calls to begin/end appearance transitions for

后端 未结 22 1988
长情又很酷
长情又很酷 2020-11-28 19:23

I read SO about another user encountering similar error, but this error is in different case.

I received this message when I added a View Controller initially:

22条回答
  •  我在风中等你
    2020-11-28 19:56

    I had lot of problem with the same issue. I solved this one by

    1. Initiating the ViewController using the storyboad instantiateViewControllerWithIdentifier method. i.e Intro *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"introVC"];
    2. [self.tabBarController presentModalViewController : vc animated:YES];

    I have the viewcontroller in my storyboard, for some reason using only [[introvc alloc] init]; did not work for me.

提交回复
热议问题