What's the alternative for searchDisplayController in iOS 8?

This morning, I changed my application deployment target to 8.0. Unfortunately searchDisplayController has been deprecated in iOS 8.0.

My question is what is an alternative to searchDisplayController if I want my app to keep running on both iOS 7.x and 8.x?

+3


source to share


1 answer


An alternative is UISearchController. If you set your target to deploy ios 7.x to a project file, it will still work on iOS7



https://developer.apple.com/library/IOs/documentation/UIKit/Reference/UISearchController/index.html#//apple_ref/occ/cl/UISearchController

+2


source







All Articles