4
活动的指标我在小区活动的指标。细胞NSFetchedResultsController
保存状态在细胞
func controller(controller: NSFetchedResultsController, didChangeObject anObject: AnyObject, atIndexPath indexPath: NSIndexPath?, forChangeType type: NSFetchedResultsChangeType, newIndexPath: NSIndexPath?) {
switch type {
case .Update:
if let _indexPath = indexPath {
self.tableView.reloadRowsAtIndexPaths([_indexPath], withRowAnimation: .None)
}
}
我的问题,重装一行之后,活动指示灯状态设置为0,再次和动画看起来与抽搐更新。
这是可能以某种方式保存指标状态或不重新装入...