iphone - UIBezierPath Gives Sharp Edges -
When I'm using UIBezierPath where the user is touching the user, the user sometimes moves faster Sometimes I find really difficult points, what can be a clue like the tip of a triangle, due to this? Or how can I fix it?
I am capturing / moving / ending points using touch and putting them in an NSArray of UIBezierPaths.
Despite the name, Instead of directing all touch coordinates directly to If you are exploring a little easier way, then there are some open source libraries which will do this for you, like this: UIBezierPath does not curve only. Basically, this will not happen by default - you are probably going through the return coordinates from
touch etc., to the
addLineToPoint method.
UIBezierPath , you should first tamper with them to avoid these sharp lines, when you fast your finger Will move to the screen. This is not very difficult, although some knowledge about this is how the Bezier curves work and spline interpolation
Comments
Post a Comment