Is it possible to set rounded corners on an UIView‘s layer and override -drawRect: at the same time? Currently the -drawRect: call seems to override the layer’s rounded corners and make them appear angular again, even if the -drawRect: just contains a call to the super’s -drawRect:.
Is it possible to set rounded corners on an UIView ‘s layer and override
Share
self.opaque = NOdidn’t work for me. Settingself.layer.masksToBounds = YESdid work, however (tested on iOS 4.3):