templates/simple/app/src/AppDelegate.m in xcbootstrap-0.0.2 vs templates/simple/app/src/AppDelegate.m in xcbootstrap-0.0.3
- old
+ new
@@ -10,12 +10,12 @@
}];
UIViewController *controller = [[UIViewController alloc] init];
controller.view.backgroundColor = [UIColor whiteColor];
- UILabel *welcome = [[UILabel alloc] initWithFrame:CGRectZero];
+ UILabel *welcome = [[UILabel alloc] initWithFrame:CGRectMake(0, 100, 320, 100)];
welcome.text = @"Welcome";
- [welcome sizeToFit];
+ welcome.textAlignment = NSTextAlignmentCenter;
[controller.view addSubview:welcome];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.rootViewController = controller;
[self.window makeKeyAndVisible];