iOS dev (9) 创建一个空白的界面

来源:互联网 发布:linux ip设置命令 编辑:程序博客网 时间:2024/06/03 22:48

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
0 0