iOS的飞溅淡出啄萎缩 [英] iOS Splash Fade Shrinking Thingy

查看:106
本文介绍了iOS的飞溅淡出啄萎缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于想通了如何淡出闪屏了,但它的权利这样做之前缩小到640x920。这里有一个VID: http://www.youtube.com/watch?v=qUXrq-uHlVk

有人知道如何解决这一问题?这里是code我使用的是:

   - (BOOL)应用:(*的UIApplication)的应用didFinishLaunchingWithOptions:(NSDictionary的*)launchOptions
{
* UIImageView的飞溅= [[UIImageView的页头] initWithImage:[UIImage的imageNamed:@为Default.png]];
[self.window.rootViewController.view addSubview:飞溅];[UIView的animateWithDuration:1.0
                 动画:^ {
                     splash.alpha = 0;
                 }
                 完成:^(BOOL完){
                     [飞溅removeFromSuperview]
                 }];
返回YES;
}


解决方案

我不认为是为Default.png的截图,但是你需要在你的扑通子视图状态栏设置为隐藏。

I finally figured out how to fade the splash screen out, but it shrinks it to 640x920 right before doing so. Here's a vid: http://www.youtube.com/watch?v=qUXrq-uHlVk

Anybody know how to fix this? Here is the code I'm using:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIImageView *splash = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Default.png"]];
[self.window.rootViewController.view addSubview:splash];

[UIView animateWithDuration:1.0
                 animations:^{
                     splash.alpha = 0;
                 }
                 completion:^(BOOL finished) {
                     [splash removeFromSuperview];
                 }];
return YES;
}

解决方案

I don't think the default.png is a screenshot, however you will need to set the status bar on your "splash" subview to hidden.

这篇关于iOS的飞溅淡出啄萎缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆