Search bar jumps down one row every time cancel button is tapped

后端 未结 3 894
伪装坚强ぢ
伪装坚强ぢ 2021-01-05 06:25

I have implemented a UISearchBar to search through a catalogue of items from an external API. The Search functionality works as expected, however the problem is that every t

3条回答
  •  不思量自难忘°
    2021-01-05 06:32

    Try to call configureSearchController() in viewDidLoad. And don't forget to call super.viewWillAppear(animated:) in your viewWillAppear.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题