zoukankan      html  css  js  c++  java
  • iOS启动屏 ➕ 闪屏的方法

    转载自:http://www.starming.com/index.php?v=index&view=21

    在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 里添加 //加一张自定义的图就实现了。就这么简单。当然复杂的你可以自己在这里实现下 self.window.rootViewController.view.alpha = 0; UIImageView *splashImageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"splash"]]; [self.window addSubview:splashImageView]; [UIView animateWithDuration:0.7 animations:^{ self.window.rootViewController.view.alpha = 1.0; } completion:^(BOOL finished) { [addSubview:splashImageView removeFromSuperview]; }];
  • 相关阅读:
    Python自动化运维答疑解惑
    MySQL基础
    Centos下常用MySQL语法
    PDO
    生成静态页面的好处
    页面纯静态
    源码安装LNMP
    Nginx URL重写(rewrite)
    防盗链
    自定义菜单
  • 原文地址:https://www.cnblogs.com/Jenaral/p/5284909.html
Copyright © 2011-2022 走看看