Tab Bar and UISearchController giving black screen

后端 未结 6 871
温柔的废话
温柔的废话 2021-01-07 20:36

I have two scenes which can be accessed through a tab bar, on scene 1 there is a search bar. the problem that I am facing is that while searching if I switch to the download

6条回答
  •  不要未来只要你来
    2021-01-07 21:20

    Looks like the view that your UISearchController is attached to gets removed from the view hierarchy. You can think of the UISearchController as being presented modally when you start searching, and the definesPresentationContext property indicates which UIViewController would be the one to present it (more on this).

    You can get more detail in the answer to a possibly duplicate question: https://stackoverflow.com/a/37357242/300131

提交回复
热议问题