01.
#import "AppDelegate.h"
02.
03.
#import "PageViewController2.h"
04.
05.
@implementation
AppDelegate
06.
07.
- (
void
)dealloc
08.
{
09.
[_window release];
10.
[_pageView2 release];
11.
[
super
dealloc];
12.
}
13.
14.
- (
BOOL
)application:(
UIApplication
*)application didFinishLaunchingWithOptions:(
NSDictionary
*)launchOptions
15.
{
16.
self
.window = [[[
UIWindow
alloc] initWithFrame:[[
UIScreen
mainScreen] bounds]] autorelease];
17.
18.
self
.pageView2 = [[[PageViewController2 alloc] initWithNibName:@
"PageViewController2"
bundle:
nil
] autorelease];
19.
self
.window.rootViewController =
self
.pageView2;
20.
[
self
.window makeKeyAndVisible];
21.
return
YES
;
22.
}