Removing cell borders from a section of grouped-style UITableView

后端 未结 15 2123
南旧
南旧 2020-12-04 07:56

I have a UITableViewController initialized with the grouped style and having multiple sections. For one of these sections, I\'d like its constituent cells to be completely t

15条回答
  •  暖寄归人
    2020-12-04 07:59

    If you have a custom UITableCellView then you can add the following method to your view to remove the background view.

    - (void)setBackgroundView:(UIView *)backgroundView
    {
        // We don't want background views for this cell.
        [super setBackgroundView:nil];
    }
    

提交回复
热议问题