Reloading custom UITableViewCell after reordering cells

后端 未结 6 1462
忘了有多久
忘了有多久 2021-02-15 16:04

I have UITableView which uses custom UITableViewCells. The cells can have one of three types of background images (set in each cell\'s .backgrou

6条回答
  •  我寻月下人不归
    2021-02-15 17:02

    I haven't tried myself but why not test your indexPath.row value on the cellForRowAtIndexPath method and provide the different backgroundView.image values for first and last row?

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

    I hope this helps. Cheers, Rog

提交回复
热议问题