2017-08-05 90 views

回答

0

对于你需要做这样的事情

self.layer.shadowPath = UIBezierPath(roundedRect: self.bounds, cornerRadius: self.contentView.layer.cornerRadius).cgPath 
+0

不会在树荫整个集合观影? – NRitH

+0

我使它像self.mCollectionView.layer.shadowPath = UIBezierPath(roundedRect:self.mCollectionView.bounds,cornerRadius:self.mCollectionView.layer.cornerRadius).cgPath但不起作用。 – eonr