문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top