UIBezierPath allows us to create curved line segments between points, but things get complicated when trying to draw smooth curves between changing sets of points.
Here’s a nice guide submitted by Atomic Object that explains how to create smooth cubic bezier curves neatly through a set of points.
The guide provides to simple methods for interpolating cubic bezier curves using cubic Hermite splines, and Catmull-Rom curves with some easy to follow code examples and no complex math.
You can find the tutorial over on the Atomic Object blog.
An example demonstrating the principles used to create the curves in the tutorial can be found on Github here.
A nice guide on bezier curves.
- Tutorial: Drawing Really Smooth Lines Paper App Style Using UIKit
- Example: Creating A UIView Drawing View With Rapidly Smoothed Lines Using Quartz
- Source Code Collection Using The Quartz Graphics API On iOS – PDFs, Bezier Curves, Gradients And More
- Open Source: OpenGL ES Curve Library For iOS
- Best Resources In iOS Development – March 19th, 2012
Original article: Tutorial: Creating Smooth Bezier Curves Between A Set Of Points
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.