在 ios 应用程序中飞溅 [英] Splash in ios app

查看:35
本文介绍了在 ios 应用程序中飞溅的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在不受限制地处理旧项目和此启动图像.

默认-568h@2x.png 640 x 1136默认.png 320 x 480默认@2x.png 640 x 960

没有 Images.xcassets 目录,也没有像

只需选择您想要的每个启动画面图像,并确保只有正确的目标才能看到该图像.例如:

这样,目标将看到的唯一资产就是分配给它的资产.这是 .plist 的样子:

我只做了一些更改,以确保没有使用故事板来满足您发布的要求.

I'm working on old project without constraints and this splash images.

Default-568h@2x.png                640 x 1136
Default.png                        320 x 480
Default@2x.png                     640 x 960

not have Images.xcassets catalog and not have configured this splash in .plist like THIS POST.

All this causes me big impression, because I had never seen anything like it.

Investigating all that, I realized that i had to do anything to make it work, it is only necessary to have the splash with these specific names and it works throughout the application very well on all devices (includingipad).

*All excellent here. !!Looks good in all Devices!!!! *

Now the big problem is that I need to have a different splash for each target. So I based on the above mentioned post, i try adding everything in the Images.xcassets or .plist (I tried 2 ways).

I even noticed some dimensions that made me more.

DefaultQA-568h.png                   320 x 568      
DefaultQA-568h@2x.png                640 x 1136
DefaultQA-667h@2x.png                750 x 1334
DefaultQA-736h@3x.png                1242 x 2208
DefaultQA.png                        320 x 480
DefaultQA@2x.png                     640 x 960

I put another name because it did not want the original target that work well, are damaged

But the application on some devices looks very bad (iPhone 6 and iPad). But in the target which has not set the splash in .plist or Images.xcassets, still it works perfect.

There any way to have 2 groups splash by default for each target, without having to configure them in the .plist or Images.xcassets?

解决方案

Yes, you can create different splash screens for different targets without changing Images.xcassets or .plist files.

You can even use the same file name as long as they are on different folders like so:

Just select each splash screen image you want and make sure only the correct target can see that image. For example:

This way, the only asset the target will see is the one assigned to it. This is how the .plist looks like:

I've only did some changes to make sure no storyboard was being used to match the requirements you posted.

这篇关于在 ios 应用程序中飞溅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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