小编LDN*_*NZh的帖子

当UISearchController呈现时未调用的UIViewControllerPreviewingDelegate方法

当没有呈现searchController时,3d touch按预期工作并调用委托方法.但是当searchController处于活动状态时不会调用.

UISearchController的创建看起来像这样

let searchController = UISearchController(searchResultsController: nil) 
searchController.searchResultsUpdater = self
searchController.delegate = self
searchController.hidesNavigationBarDuringPresentation = false
searchController.dimsBackgroundDuringPresentation = false
Run Code Online (Sandbox Code Playgroud)

ios swift uisearchcontroller 3dtouch

7
推荐指数
0
解决办法
194
查看次数

标签 统计

3dtouch ×1

ios ×1

swift ×1

uisearchcontroller ×1