Graphics Programs Reference
In-Depth Information
Subclassing UIViewController
You never create instances of UIViewController directly; instead, you create sub-
classes of UIViewController to instantiate. From the File menu, select New File...
from the New menu item.
From the iOS section, select Cocoa Touch and then choose Objective-C class . Hit Next .
On the next pane, name this class HypnosisViewController , choose NSObject as
the superclass, and hit Next ( Figure 7.2 ). Save the files when prompted to do so.
Figure 7.2 Creating HypnosisViewController
Open HypnosisViewController.h and change the superclass to UIViewCon-
troller .
 
Search WWH ::




Custom Search