Warning: Attempt to present * on * which is already presenting (null)

后端 未结 16 618
盖世英雄少女心
盖世英雄少女心 2021-02-03 17:14

This is my first application for iOS.

So I have a UIVIewController with a UITableView where I have integrated a UISearchBar and a

16条回答
  •  一整个雨季
    2021-02-03 17:36

    More than likely you have your Search button wired directly to the other view controller with a segue and you are calling performSegueWithIdentifier. So you are opening it twice, which generates the error that tells you "is already presenting."

    So don't call performSegueWithIdentifier, and that should do the trick.

提交回复
热议问题