-
Notifications
You must be signed in to change notification settings - Fork 27
/
VCAppDelegate.m
39 lines (24 loc) · 967 Bytes
/
VCAppDelegate.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
This code is licensed under a Simplified BSD License. See LICENSE for details.
If you find this code useful, please consider downloading a copy of the app that spawned it ( http://itunes.com/apps/VERVM ) and leaving a review.
My thanks,
-Joshua Emmons
@jemmons
*/
#import "VCAppDelegate.h"
#import "VCBookViewController.h"
@implementation VCAppDelegate
@synthesize window, viewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[window addSubview:viewController.view];
[window makeKeyAndVisible];
//We have to call this after a loop because it relies on orientation (which is "unknown" until after a go through the run loop).
[viewController performSelector:@selector(selectedPageDidChange:) withObject:nil afterDelay:0];
return YES;
}
-(void)dealloc {
[viewController release]; viewController=nil;
[window release];window=nil;
[super dealloc];
}
@end