iOS dev (9) 创建一个空白的界面
iOS dev (9) 创建一个空白的界面
- 作者:CSDN 大锐哥
- 地址:http://blog.csdn.net/prevention
创建一个 Empty App
略
AppDelegate
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder<UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
创建空白界面
#import "AppDelegate.h"
@implementation AppDelegate
- (BOOL) application: (UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor redColor];
[self.window makeKeyAndVisible];
return YES;
}
@end