I previously had searchController.searchBar in the header of my UITableView , but I wanted to add buttons to change which array is displayed. Now that I have added the UISearchBar in my storyboard, I am trying to figure out how to connect it to my UISearchController so that I can correctly update the results. However, even in the latest Xcode, we still have a UIDisplayController in IB.
Two ways that I think can solve this are either a way to connect them, and I donβt know this, or just use nativeBear native for the searchController and move it to the right place. I hesitate to try the latter because of the advantages of AutoLayout for calibration.
ios xcode uitableview swift
ggworean
source share