-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathmain.m
34 lines (30 loc) · 892 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
34
#include "ViewController.h"
@interface crackMe2Application: UIApplication <UIApplicationDelegate> {
UIWindow *_window;
ViewController *_viewController;
}
@property (nonatomic, retain) UIWindow *window;
@end
@implementation crackMe2Application
@synthesize window = _window;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
_window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
_viewController = [[ViewController alloc] init];
_window.rootViewController = _viewController;
[_window makeKeyAndVisible];
}
- (void)dealloc {
[_viewController release];
[_window release];
[super dealloc];
}
@end
int main(int argc, char **argv) {
setuid(0);
setgid(0);
NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
int ret = UIApplicationMain(argc, argv, @"crackMe2Application", @"crackMe2Application");
[p drain];
return ret;
}
// vim:ft=objc