I have modified the Apple sample code "TableSearch", but there is one thing I managed not to figure out by myself. How to make self.title to be fixed when I click onto the search bar?

I dont want self.title to fly away when I click on the search bar.


EDIT 17 august

The issue is resolved, so I removed the two pictures.

有帮助吗?

解决方案

You can't modify this behavior when using a UISearchDisplayController (which the sample does). Use a UISearchBar directly and set it as the headerView of your table view.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top