Each cell added to the TableView has a rounded head, because in Layer.corner ... The overhead is too high, so it causes a lag and can be drawn through Bezier curves.
//As shown below//Get your image somehowUIImage *image = [UIImage imagenamed:@"image.jpg"];//Begin A new image that would be is the new image with the rounded corners//(here with the size of an Uiimageview)Uigraphicsbeginimagecontextwithoptions (ImageView.bounds.size, NO,1.0); //Add a clip before drawing anything, in the shape of a rounded rect[[Uibezierpath bezierPathWithRoundedRect:imageView.bounds Cornerradius:10.0] Addclip]; //Draw your image[Image drawInRect:imageView.bounds];//Get the image, here setting the Uiimageview imageImageview.image =Uigraphicsgetimagefromcurrentimagecontext ();//Lets Forget about that we were drawingUigraphicsendimagecontext ();
To set the corner of the Avatar to solve