Unable to interact with view in iOS 11 SearchController?

I am unable to touch the view or scroll the tableview on didpresentSearchcontroller or willpresentSearchcontroller method of iOS 11 SearchController as shown in screenshot. There is some kind of dimming or UISearchView which not allowing me to touch the view controller or scroll the tableview. I think it disables the view. enter image description here

The greycolor view is not letting me touch the viewcontroller or tableview.

enter image description here

How can i interact with viewcontroller or scroll the tableview.

I want to show result on this view controller only .

// I dont want to show anotherview controller as result
searchController = UISearchController(searchResultsController: nil)

1 answer

  • answered 2018-05-16 06:03 Rock

    I got it. Use

    let searchController = UISearchcontroller()
    func willPresentSearchController(_ searchController: UISearchController) {
        searchController.dimsBackgroundDuringPresentation = false
    
    
    }