开发者

UISearchDisplayController to active state without the dimmed tableView

开发者 https://www.devze.com 2023-02-01 12:02 出处:网络
I am implementing a UISearchDisplayController. As the controller becomes active I load up the tableView with previous search terms, this is done so the user can easily tap the searchField, set the vie

I am implementing a UISearchDisplayController. As the controller becomes active I load up the tableView with previous search terms, this is done so the user can easily tap the searchField, set the view in the search state - But if one of the users last 4-5 search terms is the one they are looking for they can just select it from the tableView.

The problem is that until anything is entere开发者_如何学God into the searchField then tableView remains "dimmed".

I have not been able so get around this, could someone please help figure it out. I have found no mention of the dimming in the UISearchDisplayController Class documentation or in the delegate documentation.

Thanks in advance.


You could try the horrible hack that's the selected answer to this question.


Starting from iOS8 you can use the dimsBackgroundDuringPresentation Property

https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UISearchController/index.html#//apple_ref/occ/instp/UISearchController/dimsBackgroundDuringPresentation

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号