forked from erica/ibrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.m
33 lines (26 loc) · 890 Bytes
/
main.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
#import <UIKit/UIKit.h>
#import "ShareController.h"
@interface ShareAppDelegate : NSObject <UIApplicationDelegate>
@end
@implementation ShareAppDelegate
// On launch, create a basic window
- (void)applicationDidFinishLaunching:(UIApplication *)application {
UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:[[ShareController alloc] init]];
[window addSubview:nav.view];
[window makeKeyAndVisible];
}
- (void)applicationWillTerminate:(UIApplication *)application {
// handle any final state matters here
}
- (void)dealloc {
[super dealloc];
}
@end
int main(int argc, char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"ShareAppDelegate");
[pool release];
return retVal;
}