iphone - Search bar filter not working -
i creating search bar filter pragmatically, sadly not working. believe missing minor detail.the table view working correctly not search bar filter.i not using story board nor xib files project. .h uisearchbar *searchbar; nsmutablearray * getterms; @property (strong, nonatomic) nsmutablearray* alltabledata; @property (strong, nonatomic) nsmutablearray* filteredtabledata; @property (nonatomic, retain) uitableview *tableview; @property (nonatomic, assign) bool isfiltered; .m -(void)viewdidload{ searchbar.delegate = self; searchbar = [[uisearchbar alloc] initwithframe:cgrectmake(30, 10, 750, 31)]; searchbar.placeholder = @"search"; //place holder searchbar.backgroundcolor = [uicolor whitecolor]; searchbar.autocorrectiontype = uitextautocorrectiontypeno; searchbar.backgroundcolor = [uicolor clearcolor]; searchbar.keyboardtype = uikeyboardtypedefault; self.navigationitem.titleview = searchbar; searchbar.layer.cornerradius = 5; searchbar.layer.maskstobou