How to get bounds of UIBezierPath excluding control points
-
26-09-2019 - |
문제
NSBezierPath
provides an API called bounds
that returns bounds without control points.
Is there any equivalent API in UIBezierPath
to return the path bounds excluding control points?
해결책
I got the solution, which was simple. CGPath
provides such a call: CGPathGetPathBoundingBox
. We can always get CGPath
from UIBezierPath
.
다른 팁
UIBezierPath
has bounds
property. https://developer.apple.com/reference/uikit/uibezierpath/1624350-bounds
제휴하지 않습니다 StackOverflow