-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathAppDelegate.m
More file actions
29 lines (19 loc) · 806 Bytes
/
Copy pathAppDelegate.m
File metadata and controls
29 lines (19 loc) · 806 Bytes
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
#import "AppDelegate.h"
#import <UIKit/UIKit.h>
char* dummyMsg();
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(id)options {
CGRect mainScreenBounds = [[UIScreen mainScreen] bounds];
self.window = [[UIWindow alloc] initWithFrame:mainScreenBounds];
UIViewController *viewController = [[UIViewController alloc] init];
viewController.view.backgroundColor = [UIColor redColor];
viewController.view.frame = mainScreenBounds;
NSString* msg = [NSString stringWithUTF8String:dummyMsg()];
UILabel *label = [[UILabel alloc] initWithFrame:mainScreenBounds];
[label setText:msg];
[viewController.view addSubview: label];
self.window.rootViewController = viewController;
[self.window makeKeyAndVisible];
return YES;
}
@end