Unbalanced calls to begin/end appearance transitions for

前端 未结 25 1175
陌清茗
陌清茗 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:48

    In my case it happened when I triggered [self performSegueWithIdentifier:@"SomeIdentifier" sender:self]; within a UINavigationController item's viewDidLoad method.

    Moving it into the viewDidAppear method solved the problem.

    The reason very likely is that in viewDidLoad not all of the fancy animations have already been finished, whereas in viewDidAppear everything's done.

提交回复
热议问题