0
- (void) searchBarSearchButtonClicked:(UISearchBar *)theSearchBar
{
    isSearching = YES;

    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    NSInteger conf=[[[NSUserDefaults standardUserDefaults] objectForKey:@"Deepak_ConfId"] intValue];
    NSInteger PersonId = [[defaults objectForKey:@"DEEpak_UserId"] intValue];

    //Service method
    [dataService GetAllPresentationsv2:conf Date:@"" TrackID:@"-1" Tittle:presentationtitleStr Location:@"" Speaker:@"" Keyword:@"" Moderator:@"" PersonID:PersonId tTTypeId:CategorieId];
}

-(BOOL)searchDisplayController:(UISearchDisplayController *)controller
    shouldReloadTableForSearchString:(NSString *)searchString
{
    presentationtitleStr = [searchString copy];
    return YES;
}

enter code here当我在完整的数组中检查搜索时,我正在获取数据。但是当我点击清除默认搜索栏按钮时显示假的已经显示的数据,当我点击清除默认搜索栏按钮时,它会显示数据我不知道的问题是什么,请帮助我。 ..

4

0 回答 0