2017-08-05 78 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