Check out How to UISearchBar by JR. Here is an excerpt:
Drag out a UISearchBar and label
Hook up the outlets
Implement the interface
Then do this
Code
ViewController.h
#import <UIKit/UIKit.h> @interface ViewController : UIViewController <UISearchBarDelegate> @endViewController.m
#import "ViewController.h" @interface ViewController...
The full article is available here.