The simplest thing about UIView's fillet setting is that the layer's two properties are Cornerradius and Maskstobounds, but the Bezier curve is needed for setting one of the corners as rounded corners
UIView *aview = [[UIView alloc] init];
Aview.frame = CGRectMake (0, 0, 300, 200);
Aview.backgroundcolor = [Uicolor Redcolor];
[Self.view Addsubview:aview];
Set the desired fillet position and size uibezierpath *maskpath = [Uibezierpath bezierPathWithRoundedRect:aView.bounds byroundingcorners: Uirectcornerbottomleft | Uirectcornerbottomright Cornerradii:cgsizemake (10, 10)];
Cashapelayer *masklayer = [[Cashapelayer alloc] init];
Masklayer.frame = Aview.bounds;
Masklayer.path = Maskpath.cgpath;
AView.layer.mask = Masklayer;
where Uirectcornerbottomleft and Uirectcornerbottomright, is an enumeration, which also includes the upper left corner and the upper right corner
But there are times when you set the fillet so that it will take up a lot of resources for the application, so it's time to achieve a more troublesome Bezier curve.
UIView rounded Corners setting