objective c - UITableView reordered cells not retaining its state after scrolling -


i'm working on uitableview dynamic number of rows & sections. have stored data's (rows , section values) in nsmutabledictionary this. { fruits = [apple, orange, pineapple], cars = [ferrari, porsche, audi] }

here fruits & cars section titles while values corresponding rows. fine. i'm following raywanderlich's tutorial here reorder uitableview cells within section long pressing row. works perfect. problem is, after reordering cells, when scroll bottom or top of table, reordered cells goes initial position. but, want them stay in reordered position after scrolling or reloading.

ideas appreciated.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -