现在 Xcode 会 log warning:“[Search] The topViewController (<LargeTitleDemo.ViewController: 0x10200a420>) of the navigation controller containing the presented search controller (<UISearchController: 0x10281c600>) must have definesPresentationContext set to YES.”,然后根据关键词搜一下就找到了~
再谈 iOS 的 "presentViewController" 方法最近做东西的时候发现了这样的一个问题,相信大家也都遇到过,当你使用 UISearchController 在 UITableView 中实现搜索条,在搜索框已经激活并推入新的...