UISearchBarController iOS 11 issue - SearchBar and scope buttons overlap

后端 未结 7 907
误落风尘
误落风尘 2021-01-04 07:26

Referred here and here. No answer in first link. In the second link, though the answer is not accepted, but the link to apple developer forum gives error.

Before i

7条回答
  •  时光取名叫无心
    2021-01-04 07:55

    Per your comments, your UISearchController's UISearchBar has been assigned to your UITableView's tableHeaderView. In iOS 11, you should instead be assigning your UISearchController to the searchController property of your view's navigationItem. You no longer need to assign the UISearchBar anywhere. See Apple's documentation on this new property.

提交回复
热议问题