| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

iOS启动屏后再加个闪屏的方法

在- (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];  }];

本文地址: http://www.starming.com/index.php?v=index&view=21