我偶尔会从 NSMetadataQueryDidUpdateNotification 获取更新。这些在后台异步线程中运行,但仍然偶尔会减慢应用程序的速度。
问题是这会减慢我的 TableView 速度,以至于如果您单击一行,它有时不会立即推动它。这是 tableView 内部的一个简单调用:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
[[self navigationController] pushViewController:detailViewController animated:YES];
[detailViewController release];
如果您多次触摸该行(沮丧),应用程序视图控制器堆栈就会混乱:
nested push animation can result in corrupted navigation bar
nested push animation can result in corrupted navigation bar
nested push animation can result in corrupted navigation bar
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
Unbalanced calls to begin/end appearance transitions for <DetailViewController: 0xdabc0c0>
我如何阻止这种情况发生并且只接受对行的第一次触摸?