zoukankan      html  css  js  c++  java
  • ios建立空模版"Empty Application"常用代码

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
        // Override point for customization after application launch.
        self.window.backgroundColor = [UIColor whiteColor];
        
        //设置启动画面停留时间,5s
        [NSThread sleepForTimeInterval:5];
        
        //初始化HomeViewController页面
        HomeViewController *homeViewController = [[HomeViewController alloc] init];
        self.window.rootViewController = homeViewController;
        [homeViewController release];
        
        [self.window makeKeyAndVisible];
        return YES;
    }
  • 相关阅读:
    申请奖励加分
    6.14
    6.11
    6.10
    6.9
    6.8
    6.7
    6.6
    6.5
    6.4
  • 原文地址:https://www.cnblogs.com/hanjun/p/2742366.html
Copyright © 2011-2022 走看看