0
当我microsoftSQL查询成功从DB我也删除说,从我的“本地数据”UISearchDisplayController删除行不删除
可正常工作,除非你是“搜索”
行删除行当您显示搜索结果并且您滑动以删除该行时,实际上并未使用动画进行删除。如果我重新键入我的搜索查询,则会按照怀疑消失。
那么......有没有办法在uisearchdisplaycontroller中删除某行的动画,或者有没有办法重新加载搜索结果表?或者我应该禁用在搜索中删除?
[itemAutoIDRows removeObjectAtIndex:currentRow];
[itemIDRows removeObjectAtIndex:currentRow];
[itemNameRows removeObjectAtIndex:currentRow];
[qtyOrderedRows removeObjectAtIndex:currentRow];
[qtyReceivedRows removeObjectAtIndex:currentRow];
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:currentRow inSection:0];
NSArray *indexPathArray = [[NSArray alloc] initWithObjects:indexPath, nil];
[self.POTableView deleteRowsAtIndexPaths:indexPathArray withRowAnimation:UITableViewRowAnimationFade];
break;
[indexPathArray release];
此代码在使用普通tableview但不动画或刷新搜索结果表视图时工作正常。有任何想法吗?
这正是我需要的谢谢你:D – Hackmodford