SCSearchViewController

@interface SCSearchViewController : SCViewController {
  UISearchBar *_searchBar;
}

This class functions as a means to simplify creating view controllers dedicated to searching data within a table view.

In addition to all the features provided by its SCViewController superclass, SCSeachViewController conveniently provides a UISearchBar control and a UITableView control aligned under each other. In addition, SCSearchViewController defaults to automatically displaying a UISearchDisplayController when a search is performed.

Note

Both the UISearchBar and UITableView controls can still be created in Interface Builder and assigned to their respective outlets. In case no outlets are assigned, SCSearchViewController will automatically create the missing control(s).

Configuration

  • The search bar control associated with the view controller. Unless assigned in Interface Builder, this property will automatically create a UISearch when accessed.

    Declaration

    Objective-C

    @property (nonatomic, strong) UISearchBar *searchBar;