문제

I've tried playing around with this a bit but have been unable to get what I want. I found a question online too without an answer asking the exact same question.

When search bar is enabled UISearchDisplayController greys out everything under the search bar and above the keyboard -- leaving my 'table' underneath looking kind of ugly...

How can I remove the grey-out effect?

도움이 되었습니까?

해결책

I added this code:

- (void)searchDisplayControllerDidBeginSearch:(UISearchDisplayController *)controller {

    for (UIView *v in [[[controller.searchResultsTableView superview] superview] subviews]) {

        if (v.frame.origin.y == 64) {
            [v setHidden:YES];
        }
    }

}

and it works but it removes some other functionality, like cancel search by clicking on tableview....but it's better than nothing...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top