SpokaneDude
SpokaneDude

Reputation: 4974

How do I create a UISearchController since UISearchDisplayController is deprecated in iOS 8?

There is NO UISearchController in IB, only the UISearchDisplayController; where do I find docs on creating it?

Upvotes: 1

Views: 1589

Answers (1)

juniperi
juniperi

Reputation: 3763

From documentation;

Important: UISearchDisplayController is deprecated in iOS 8. (Note that UISearchDisplayDelegate is also deprecated.) To manage the presentation of a search bar and display search results in iOS 8 and later, instead use UISearchController.

Read UISearchController documentation. There is an example how to create UISearchController, not in IB but programmatically.

Upvotes: 2

Related Questions