Unbalanced calls to begin/end appearance transitions for

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

    I had this problem because of a typo:

    override func viewDidAppear(animated: Bool) {
        super.viewWillAppear(animated)
    

    instead of

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
    

    It was calling "WillAppear" in the super instead of "DidAppear"

提交回复
热议问题