4. Geometry

Although UIKit requires less applied math than, say, Core Animation or Open GL, geometry plays an important role when working with Bezier paths and view transforms. Why do you need geometry? It helps you manipulate views in nonstandard ways, including laying out text along custom paths and performing path-follow types of animation. If your eyes glaze over at the mention of Bezier curves, convex hulls, and splines, this chapter helps demystify these terms, enabling you to add some powerful customization options to your toolbox.

Recipe: Retrieving Points from Bezier Paths

In mathematics, Bezier curves refer to a parameterized smoothed curve, created by control points applied to a line segment. In UIKit, Bezier paths define shapes built ...

Get The Advanced iOS 6 Developer’s Cookbook, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.