Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
The SimpleStocks sample application demonstrates how to use UIKit classes and the Core Graphics framework to draw content for iOS. From this example you will learn about UIKit's UIBezierPath class. In the sample path objects are used to both draw content and clip content. In addition you will see examples of using patterns to fill paths as well as using a path to clip images.
This example shows how to use various drawing API's in UIKit.
- UIBezierPath for building simple and complex paths
- UIBezierPath for clipping
- How the drawing system works in UIKit
- Performance Optimizations for drawing
This is the graph view where the drawing is done.
This view controller acts as the data source for simple stock view.
The daily trade model.
The daily trade model data.
Trivial application delegate.
Copyright (C) 2011-13 Apple Inc. All rights reserved.