samsam
samsam

Reputation: 3125

How to move a UITableViewCell within a UITableView

I really wonder why this question hasn't popped up here so far. I have a UITableView with custom UITableViewCells in it. The Table itself is editable and contains deletable cells as well as insertable ones.

if a cell is being deleted i want it to become insertable again AND it to move to the bottom of the table.

any clues on how to change a UITableViewCells position within a UITableView?

thx in advance

sam

Upvotes: 1

Views: 531

Answers (1)

willcodejavaforfood
willcodejavaforfood

Reputation: 44063

If you want to change the position of cells you need to look to your implementation of UITableViewDataSource Protocol and specifically the method:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

Upvotes: 1

Related Questions