0
每當我保存一個新對象時,它都會顯示在我的UITableView
的頂部。如果希望它在不同的索引路徑或不同的區段中顯示?在索引路徑中保存新對象核心數據
對於實例是它可以插入新對象在:
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:[[self objectsFetched] count]-1 inSection:0];
或
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:[[self objectsFetched] count]-1 inSection:1];
我可以做到上面的場景與NSMutableArray
S,但如何實現與核心相同數據?
退後一步。如何將對象保存到索引路徑將轉換爲核心數據中的某個位置 – Abizern