Swipe across the screen and drag the string of pearls after you.
main.m
SpringAppDelegate
creates the view controller.ViewController
creates the big black view and sets the text color of the status bar to white.
The view controller contains a
CADisplayLink
which triggers a call to
drawRect:
60 times per second.
View
creates the five
Pearl
objects.
Pearl
draws one circle and one line.
Newton’s
Second Law
is
CGPoint
s
in our language).
The
m
is italic because it is a scalar
(a
CGFloat
in our language).
SpringApDelegate.h
imports
ViewController.h
.
ViewController.h
imports
QuartzCore.h
View.h
.
View.h
imports
Pearl.h
.
Class
Pearl
has a
property.
html5.html
Pull down your browser’s
View menu (Develop on Safari)
and select
View Source
or
Page Source
.