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, 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.

Instead of directing all touch coordinates directly to 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

If you are exploring a little easier way, then there are some open source libraries which will do this for you, like this:

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -