UISearchDisplayController causes crash after viewDidUnload

后端 未结 7 1777
温柔的废话
温柔的废话 2020-12-14 09:50

I have a project using StoryBoards and UISearchDisplayController used in the context of a UINavigationController, that appears in the root viewcont

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 10:31

    ViewDidUnload Called means, you got memory exceptions in your application.

    First try to fix your memory issues, then automatically search display view controller problem will be resolved.

    Because there seems to nothing wrong in code, When memory exceptions occurs, then better to take user previous screen by saying [self.navigationController popViewControllerAnimated:NO]

提交回复
热议问题