UISearchController not dismissed when View is pushed

后端 未结 1 557
孤街浪徒
孤街浪徒 2021-02-14 00:06

I know this is a long write-up, but it\'s just one issue I promise.

The Setup

I\'m getting some very strange behavior with a UISearchController. Let me describ

相关标签:
1条回答
  • 2021-02-14 00:51

    I have the same exact issue, I have solved it by setting:

    self.definesPresentationContext = YES;
    

    on the view controller that presents the UISearchController. This is recommended by Apple in WWDC session 228, read about it here: http://asciiwwdc.com/2014/sessions/228.

    0 讨论(0)
提交回复
热议问题