通过使用<条码>[IDBezierPath bezierPathWithRoundedRect:byRoundingCorners:Iser Radii:],我得以形成一种四舍五入的观点,例如:
我如何能够从这条道路上(或以某种方式)绕过另一条道路,从而形成这样的道路:
https://i.stack.imgur.com/Rb82R.png” alt=“subtracted view”/>
Is there any way I can do something like this? Pseudocode:
UIBezierPath *bigMaskPath = [UIBezierPath bezierPathWithRoundedRect:bigView.bounds
byRoundingCorners:(UIRectCornerTopLeft|UIRectCornerTopRight)
cornerRadii:CGSizeMake(18, 18)];
UIBezierPath *smallMaskPath = [UIBezierPath bezierPathWithRoundedRect:smalLView.bounds
byRoundingCorners:(UIRectCornerTopLeft|UIRectCornerTopRight)
cornerRadii:CGSizeMake(18, 18)];
UIBezierPath *finalPath = [UIBezierPath pathBySubtractingPath:smallMaskPath fromPath:bigMaskPath];