我试图实现此方法,以便能够移动Tableview中的单元格。一切运行良好,但条形图未显示,并且我无法移动单元格。
- (void)moveRowAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath {
[[HPPossessionStore defaultStore] movePossessionAtIndex:[indexPath row] toIndex:[newIndexPath row]];
}
我必须怎么做才能使其正常工作?
在下面添加委托方法。
- (BOOL)tableView:(UITableView *)tableView
canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
return YES;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句