Hi i am searching a clean solution without overwriting drawRect or stuff like that to create a UIView with Rounded corners on the Top of the
drawRect
UIView
In Objective-C it looks like:
[oCollectionViewCell.layer setMasksToBounds:YES]; [oCollectionViewCell.layer setCornerRadius:5.0]; [oCollectionViewCell.layer setMaskedCorners:kCALayerMinXMinYCorner|kCALayerMaxXMinYCorner];