Comment obtenir des limites de UIBezierPath hors points de contrôle
-
26-09-2019 - |
Question
NSBezierPath
fournit une API appelée bounds
qui retourne des bornes sans points de contrôle.
Y at-il API équivalent en UIBezierPath
pour retourner les limites de chemin hors des points de contrôle?
La solution
Je suis la solution, ce qui était simple. CGPath
fournit un tel appel: CGPathGetPathBoundingBox
. Nous pouvons toujours obtenir de CGPath
UIBezierPath
.
Autres conseils
UIBezierPath
a la propriété bounds
. https://developer.apple.com/reference/uikit/uibezierpath/1624350- bornes
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow