searchDisplayController' is deprecated: first deprecated in iOS 8.0
.h
@property (strong, nonatomic) UISearchController *searchController;
.m
[self filterContentForSearchText:searchText scope:[[self.searchController.searchBar scopeButtonTitles] objectAtIndex:[self.searchController.searchBar selectedScopeButtonIndex]]];
this coding working well....
What is the alternative for searchDisplayController in iOS 8?
The alternative is UISearchController. If you set your Deployment Target to ios 7.x in the 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
Related Topics
iOS 6.X Open Command Line on Jailbreak
How to Get the Incoming Call Number by Using Callkit
As3 for iOS:How to Serialize an Array and Then Save It
Changing Tab Bar Item Image and Text Color iOS
iOS 9 "Fbauth2" Missing from Info.Plist
Steps to Create and Edit a Plist File in Xcode
Detect Backspace Event in Uitextfield
How to Connect Viewcontroller.Swift to Viewcontroller in Storyboard
What Is a Monospace Font in iOS
App Getting Crash When Click on Googlesignin Button
Button Action in Mkannotation View Not Working
Hardware-Dependent Nsdateformatter Datefromstring: Bug (Returns Nil)
Async Request Does Not Enter Completion Block
iOS 7 Uisearchdisplaycontroller Search Bar Overlaps Status Bar While Searching
iOS - 'Myproject-Swift.H' File Not Found When Running Unit Tests for Swift
Difference Between Static Function and Singleton Class in Swift
How to Figure Out Which Url Is Being Blocked by App Transport Security