Unbalanced calls to begin/end appearance transitions for

后端 未结 22 1990
长情又很酷
长情又很酷 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 20:10

    I had this problem with a third party code. Someone forgot to set the super inside of viewWillAppear and viewWillDisappear in a custom TabBarController class.

    - (void) viewWillAppear:(BOOL)animated {
    
        [super viewWillAppear:animated];
        // code...
    }
    
    or
    
    - (void) viewWillDisappear:(BOOL)animated {
    
        [super viewWillDisappear:animated];
        // code...
    }
    

提交回复
热议问题