searchbar displaycontroller从服务器获取数据但显示完整的假已经显示的数据

时间:2016-03-10 13:04:05

标签: ios uitableview uisearchbardelegate

- (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我在完整数组中检查搜索时获取数据。但是当我点击清除默认搜索栏按钮时显示虚假alredy显示数据滚动时间崩溃和beyod界限它显示数据是什么问题我不打算请帮助我...

0 个答案:

没有答案