【发布时间】:2013-05-09 20:41:21
【问题描述】:
我在我的一个应用程序中使用带有 NSFetchResultController 的 Core Data。我正在寻找提高性能的方法,我遇到的一个问题是我的 UITableViewController。这有点粗略。我使用了 Instruments Time Profiler,发现以下内容:
好像是从下面的方法调用的:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
[...]
Post *cellPost = [self.fetchedResultsController objectAtIndexPath:indexPath];
[...]
}
不知道有没有办法解决这个问题?或者它可能是导致性能打嗝的其他原因?
【问题讨论】:
标签: ios objective-c cocoa-touch core-data nsfetchedresultscontroller