iOS10 - 透明的应用程序背景 [英] iOS10 - transparent app background

查看:126
本文介绍了iOS10 - 透明的应用程序背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让我的应用程序的背景半透明,以便我可以显示主屏幕壁纸,如提醒iOS应用程序?

How can I make the background of my app semi-transparent so that I can show the home screen wallpaper, like "Reminders" iOS app?

推荐答案

不幸的是,这是Apple为自己预留的好东西之一。

This is one of those goodies that Apple reserves for themselves, unfortunately.

因为您的应用是沙盒(无法在其他应用中看到),所以您只能使用iOS允许您使用的内容。当您的应用程序加载时,应用程序就会显示在iOS堆栈上,与主屏幕无关,Apple也不会为您提供主屏幕。

Because your app is sandboxed (can't see inside other apps), you're only allowed to use what iOS will allow you to use. When your app is loaded, the app is then what's shown on the iOS stack, independent of the home screen, and Apple doesn't make the home screen available to you.

当您加载应用程序时,您会注意到动画显示应用程序在主屏幕上最大化。不幸的是,这是一个视觉技巧,因为主屏幕不一定留在内存中。

You'll notice when you load the app that the animation shows the app maximizing over the home screen. Unfortunately, that's a bit of a visual trick, as the home screen isn't necessarily left laying there in memory.

这篇关于iOS10 - 透明的应用程序背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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