現(xiàn)在 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.”,然后根據(jù)關鍵詞搜一下就找到了~
再談 iOS 的 "presentViewController" 方法最近做東西的時候發(fā)現(xiàn)了這樣的一個問題,相信大家也都遇到過,當你使用 UISearchController 在 UITableView 中實現(xiàn)搜索條,在搜索框已經(jīng)激活并推入新的...