Graphics Programs Reference
In-Depth Information
Save these new files when the sheet appears. Then, open
HeavyViewController.m
and delete everything between
@implementation
and
@end
. The file should look like
this:
#import "HeavyViewController.h"
@implementation HeavyViewController
@end
Using this template gives you a subclass of
UIViewController
named
HeavyViewController
. You also get a XIB file named
HeavyViewControl-
ler.xib
. This XIB file has a
File's Owner
of type
HeavyViewController
, whose
view
outlet is connected to a 320x460 point sized view object.
To implement autorotation in
HeavyRotation
, you need to do two things:
• Override
shouldAutorotateToInterfaceOrientation:
in
HeavyViewController
to allow autorotation.