IOSTips:啓動屏後再加個閃屏的方法

在- (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions 裏添加php

cself.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];
}];

原文連接app

相關文章
相關標籤/搜索