March 2012
Intermediate to advanced
590 pages
22h 48m
English
Now let’s get started with your application. In Xcode, create a new Empty Application iPhone project and name it TouchTracker. Don’t specify a Class Prefix and only check the box for Automatic Reference Counting.
First, you will need a model object that describes a line. Create a new NSObject and name it Line. In Line.h, declare two CGPoint properties:
#import <Foundation/Foundation.h> @interface Line : NSObject @property (nonatomic) CGPoint begin; @property (nonatomic) CGPoint end; @end
In Line.m, synthesize the properties:
#import "Line.h" @implementation ...
Read now
Unlock full access