【发布时间】:2016-01-29 11:34:55
【问题描述】:
我在导航栏上有一个 UISearchController 通过:
navigationItem.titleView = searchController.searchBar
我有
definesPresentationContext = true
现在我的问题是当我第一次去有 UISearchController 的活动时,一切正常。但是,在我的应用程序中,如果我从侧面菜单转到某个活动,然后通过推送到导航堆栈再次转到包含 UISearchController 的活动,则搜索控制器不起作用。所以这就是我正在做的事情:
让A 表示包含 UISearchController 的活动
- 转到
A。一切正常。 - 参加任何其他活动。
- 再次按下
A,不要弹回。 UISearchController 没有响应。不响应是指 searchBar 不响应触摸。
我知道我应该弹出,但我的应用程序不能。可能是什么问题?
【问题讨论】:
-
奇怪...我也有同样的问题。以前工作过。