ios - 推送新的 UIViewController 时 UISearchController 消失

标签 ios swift cocoa-touch uisearchcontroller ios12

我目前正在使用来自 Raywenderlich 的示例:UISearchController-Tutorial (完成的项目位于他们的文章或 here 的末尾),我注意到当我执行搜索并单击其中一个结果时,在推送转换期间,UISearchController 消失了。在此视频中可见:here

Before selecting a result

During the transition to the new VC

我使用 Xcode 10、iOS 12(sim:iPhone 8)运行此示例

任何想法/指针将不胜感激

干杯。

最佳答案

iOS12 中默认。只需看看 Apple-Mail 应用程序即可。那里也是一样的。实际上,当您显示另一个 VC 时,您不需要搜索栏

关于ios - 推送新的 UIViewController 时 UISearchController 消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53219299/

相关文章:

ios - PDFDocument 未从 URL 加载文件

iphone - 在应用程序运行时阻止 Iphone iOS 中的调用和短信

ios - 添加 UIImage 会忽略 UIImageView 框架并调整其大小

ios - GameCenter 通知横幅有时会出现 "squished"- 这可能是什么原因造成的?

iphone - 释放 CGContextDrawPDFPage 使用的内存

iphone - iOS 图片上传,ASIHttpRequest 以外的第三方 api

ios - Swift:在 touchesBegan/touchesEnded 中延迟双击

ios - 用于求解数字因数和显示的 Swift 应用程序

ios - 编辑 tableview Swift 的行高

iphone - 像 MPMediaPickerController/iPod 库一样对 NSArray 进行排序