I try to add search bar into cell with identifier and the use this method viewForHeaderInSection
which it's come up with an error of
The search bar outlet from the UISearchController to the UISearchBar. Outlet cannot be connected to repeating content.
So basically I want to make search bar staying while scrolling the table view. This is my approach to make it work but it doesn't work.
Any suggestion?