Unbalanced calls to begin/end appearance transitions for

后端 未结 22 1957
长情又很酷
长情又很酷 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条回答
  •  萌比男神i
    2020-11-28 19:57

    I had the same problem. I called a method inside viewDidLoad inside my first UIViewController

    - (void)viewDidLoad{
        [super viewDidLoad];
    
        [self performSelector:@selector(loadingView)
                   withObject:nil afterDelay:0.5];
    }
    
    - (void)loadingView{
    
        [self performSegueWithIdentifier:@"loadedData" sender:self];
    }
    

    Inside the second UIViewController I did the same also with 0.5 seconds delay. After changing the delay to a higher value, it worked fine. It's like the segue can't be performed too fast after another segue.

提交回复
热议问题