NSBezierPath提供了一个调用的 API bounds,它返回没有控制点的边界。是否有任何等效的 APIUIBezierPath来返回不包括控制点的路径边界?
1815 次
2 回答
8
我得到了解决方案,这很简单。CGPath提供了这样的调用:CGPathGetPathBoundingBox. 我们总能从中CGPath得到UIBezierPath。
于 2011-01-06T09:23:30.737 回答
0
UIBezierPath有财产bounds。https://developer.apple.com/reference/uikit/uibezierpath/1624350-bounds
于 2016-12-13T08:39:55.580 回答