I want to create a searchBar for my table in the xcode storyboard, everything works for me and I have no error, just the search does not work.
I saw this two tutorials, but still not working. I canβt search. my tutorial:
-http://stackoverflow.com/questions/9897171/uisearchbar-implemented-with-storyboards -http://www.youtube.com/watch?v=IqDZHgI_s24
Could you help me, Thanks in Advance!
Here is my code
CreateViewController.h
CreateViewController.m
#import "CreateViewController.h" @interface CreateViewController () @end @implementation CreateViewController - (id)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { // Custom initialization } return self; } - (void)viewDidLoad { [super viewDidLoad]; datas = [NSMutableArray arrayWithObjects:@"Johan", @"Paul",@"George",@"Ringo", nil]; displayItems = [[NSMutableArray alloc] initWithArray:datas]; [super viewDidLoad]; } - (void)viewDidUnload { [super viewDidUnload]; // Release any retained subviews of the main view. // eg self.myOutlet = nil; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); }
user1344851
source share