Need to achieve the effect is clear, as long as the top left and right two local fillet, before the layer directly set Four corners have become rounded, and then I started a powerful search function
And then I got what I wanted.
Technical Links: http://www.xuebuyuan.com/1710271.html
Uiimageview *imgview = [[Uiimageview alloc] Initwithframe:cgrectmake (A, A, a.)]; Uibezierpath *maskpath = [Uibezierpath bezierPathWithRoundedRect:imgView.bounds byroundingcorners: Uirectcornertopleft | Uirectcornertopright Cornerradii:cgsizemake (8, 8)]; Cashapelayer *masklayer = [[Cashapelayer alloc] init]; Masklayer.frame = imgview.bounds; Masklayer.path = Maskpath.cgpath; ImgView.layer.mask = Masklayer;
Above is my code specifically can be based on pinch requirements to set the fillet, the original text is very clear I'm not much
IOS Specifies the number of rounded corners