Mapview not scrollable & touchable with UISearchDisplayController in iOS 7

随声附和 提交于 2020-01-15 06:48:08

问题


I am using UISearchDisplaycontroller.. In my viewcontroller user can search place aftert i have update mapview and setting searchtableview hidden propety is YES.

In iOS 7 I am not able to scroll and get touch event on mapview. But in iOS 6 it will work..

After pressing cancel button i am able to scroll and touch event on map view. You can see below screenshot.

Thanks in advance


回答1:


I could solve my problem with help of another question Here

by setting self.searchDisplayController.searchResultsTableView.superview.hidden = YES

it worked for me..

View hierarchy for iOS 7 is changed..



来源:https://stackoverflow.com/questions/19291670/mapview-not-scrollable-touchable-with-uisearchdisplaycontroller-in-ios-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!