2012-07-12 60 views

回答

4

您是否嘗試過只是掩蓋你的tableView's層:

CAShapeLayer * maskLayer = [CAShapeLayer layer]; 
maskLayer.path = [UIBezierPath bezierPathWithRoundedRect: self.bounds byRoundingCorners: UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii: (CGSize){10.0, 10.}].CGPath; 

self.tableView.layer.mask = maskLayer; 

或只使用:

self.tableView.layer.cornerRadius = 10.0 

爲整個表