Moving rows up & down in table view

Hello,

I have a table view with a data source. I’d like to be able to have a selected row move up or down in the table view, reordering the data. In my app I’ll have two buttons, a down arrow and up arrow that will allow the user to select a row and click either button to shift the selected row up or down.

I know how to get the selected data row of the table but not sure how to rewrite the datasource to move it. Any ideas?

Thanks,
Dan

Hi dtech,

I don’t think there’s an easy way to do this, so you just have to switch the content of the two data rows.

gl,