Adding drop shadow to UITableView

前端 未结 4 2064
野趣味
野趣味 2020-12-30 03:41

I\'ve a plain UITableView (not grouped) that I want to add a dropshadow to left and to the right.

\"enter

4条回答
  •  醉酒成梦
    2020-12-30 04:26

    You need to make sure clipsToBounds and masksToBounds are set to NO on the view and layer respectively.

    self.tableView.clipsToBounds = NO;
    self.tableView.layer.masksToBounds = NO;
    

提交回复
热议问题