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;
    }
  • 相关阅读:
    rabbitmqctl常用命令-3
    Count and Say
    Spiral Matrix II
    Minimum Path Sum
    Plus One
    Rotate Image
    Permutations
    Search a 2D Matrix
    Binary Tree Level Order Traversal II
    Binary Tree Level Order Traversal
  • 原文地址:https://www.cnblogs.com/hanjun/p/2742366.html
Copyright © 2011-2022 走看看