题
NSBezierPath
提供称为bounds
一个API,而不控制点返回边界。
是否有任何UIBezierPath
相当于API返回的路径边界排除控制点?
解决方案
我得到的溶液,这是简单的。 CGPath
提供了这样一个电话:CGPathGetPathBoundingBox
。我们总能从CGPath
得到UIBezierPath
。
其他提示
UIBezierPath
具有bounds
属性。 https://developer.apple.com/reference/uikit/uibezierpath/1624350-边界
不隶属于 StackOverflow