ITeye博客

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

prevention · 2014-01-01 03:58 · Markdown

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

创建一个 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)

暂无评论。

评论功能维护中,当前仅展示历史评论。