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
精彩评论