This page contains additional examples used in From Idea to App: Creating iOS UI Animations and Gestures by Shawn Welch. Copyright © 2011.
Don’t forget to check out the bonus chapter on CoreMotion with examples on how to use the gyroscope and accelerometer!
Don’t see the download you are looking for?
Pg 13: Model-View-Controller
In Chapter 1 we talked about the Model-View-Controller relationship in iOS. In this example we have a simple app that draws a polygon on the screen. Notice how the model (information), view (visual display) and controller (logic center) of the app are separated.
Pg 59: UILabel Example
In this chapter we talked about the UILabel and discussed various properties available. This example shows how to set up multiple UILabels using either a .xib file or manually from viewDidLoad
Pg 63: UIWebView Example
In Chapter 4 we talked about the UIWebView. This sample app is a very basic introduction to creating a UIWebView and setting up a delegate to respond to the UIWebViewDelegate protocol
Pg 67: UIScrollView Example
This examples shows how to set up a simple UIScrollView with paging enabled. In this example we programmatically create a separate UIView for each page then add it to the content view of our scroll view
Pg 76: View Life Cycle Example
The view life cycle is a series of events that are called in your UIViewController based on the state of your view. The following example demonstrates the view life cycle.
Pg 78: UITabBarController Example
The UITabBarController organizes a series of views into discrete sections that allow user input on a tab bar to navigate between each section. The UITabBarController’s associated view consists of the tab bar interface and the content view of a selected tab.
Pg 92, 94 and 96: UIControl Kitchen Sink
A kitchen sink project is intended to include everything (but the kitchen sink). This project demonstrates a variety of uses for various UIControls from chapter 6
Note: The examples from chapter 13 for Touches and Gestures have been combined into a single project, “Touch Demo”. This means the download for the next two examples is in fact the same project file, with each example separated by a UITabBarController.
Pg 227: UIView Touch Demo
This project contains examples of implementing various touchesBegan, and touchesEnded methods on a UIView