Unbalanced calls to begin/end appearance transitions for

前端 未结 25 1168
陌清茗
陌清茗 2020-12-02 06:31

I have this problem when I simulate my app, its not an error or a warning but it appears in my console, has anyone ever experienced this before?

25条回答
  •  不知归路
    2020-12-02 06:56

    Ensure that you do not forget to in -viewWillAppear, -viewDidAppear, -viewDidLoad, -viewWillDisappear, -viewDidDisappear to call proper super method in your overload of that methods. For example in my case I mismatched method name like this:

    -(void)viewDidAppear
    {
     [super viewDidDisappear];
     //some code staff
     ..
    }
    

    notice that appear and disappear methods are mismatched

提交回复
热议问题