Round corners on UITableView

前端 未结 8 667
野的像风
野的像风 2020-11-28 06:13

What is the best way to get round corners on an entire UITableView as seen in Stocks and Spotlight? The grouped style doesn\'t solve the problem because the round corners sc

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 06:26

    An easier way to do this is to simply import the QuartzCore framework to your project. #import to your tableViewController and just set

    myTableView.layer.cornerRadius=5;
    

    This will give you rounded corners without having to add your tableview to a superView or clipping it.

提交回复
热议问题