Rounded corner images only for specific angles with an angle angle Radius

I am only trying to round the upper left corner of the image so that it does not match the appropriate class of tableviewcell. I can get 4 corners rounded with the code below. Does anyone know a simple way to get only one of the corners rounded?

cell.imageView.layer.masksToBounds = YES; cell.imageView.layer.cornerRadius = 5.0; 

thanks.

+7
source share
1 answer

The only practical way to do this is to draw the content yourself with rounded corners. You can round arbitrary corners using the mask property with another layer that has the corners you want to round by hand, but this is significantly slower. If you can take on the drawing, you must do it.

0
source

All Articles