Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Selecting Cells after Delete

lukeirvinlukeirvin Posts: 388Registered Users @ @
I have a table in which many cells can be added (and removed).

I want to select the closest cell next to the one being deleted.

For example, if it's the very last cell, the one above it should be selected.

If it's a cell in the middle, the one below it.

What's the best method of detecting cells and then selecting other cells once they have been removed?

Replies

  • RickSDKRickSDK Posts: 1,239Registered Users @ @ @ @
    well, in the method didSelectRowFromIndexPath, that will give you the indexPath of the selected row. from there you should be able to choose whatever row is close to that and highlight it.

    beyond that you are going to have to explain which part you are getting stuck on and what you have tried.
Sign In or Register to comment.