UITableViewCell with image on the right?

前端 未结 11 1076
南方客
南方客 2020-12-13 05:48

Is there a way to set the UITableViewCell.image to display on the right hand side of the cell instead of the left? Or will I need to add a separate UIImageView on the right

11条回答
  •  庸人自扰
    2020-12-13 06:22

    No. But you can easily add an image view as the accessory view to a table cell for the same effect.

    UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"foo.png"]];
    cell.accessoryView = imageView;
    [imageView release];
    

提交回复
热议问题