I have a UIImageView on UIView, I use code as below to draw round corner, but it doesn't work, what can I do?
Code:
self.icon.image = [UIImage imageNamed:@"icon-72.png"];
self.icon.layer.masksToBounds = YES;
self.icon.layer.cornerRadius = 10.632f;