How to UISearchBar

Check out How to UISearchBar by JR. Here is an excerpt:

Drag out a UISearchBar and label

Screen Shot 2017-06-03 at 2.27.29 PM.png

Hook up the outlets

Screen Shot 2017-06-03 at 2.28.00 PM.png

Implement the interface

Screen Shot 2017-06-03 at 2.28.15 PM.png

Then do this

Screen Shot 2017-06-03 at 2.28.37 PM.png

Code

ViewController.h

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController <UISearchBarDelegate>


@end

ViewController.m

#import "ViewController.h"

@interface ViewController...

The full article is available here.