Square instead of rounded corners in UITableViewCell grouped style

后端 未结 4 1915
無奈伤痛
無奈伤痛 2021-01-01 06:16

I want to have square corners for my grouped tableview cells instead of the default rounded corners, and I don\'t just want to use an image to give that effect. Is it possib

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-01 06:50

    Most simply, in your tableView:cellForRowAtIndexPath: use

    cell.backgroundView = [[[UIView alloc] initWithFrame:cell.bounds] autorelease];
    

提交回复
热议问题