透明的iphone应用 [英] Transparent iphone application

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

问题描述

我正在尝试构建一个启动的应用程序具有透明背景,实际上,仅显示视图中的对象(按钮、标签等)而不显示背景,因此您可以看到用户家的背景.在示例文件中你可以看到屏幕中央的紫色正方形图像,理论上应该是一个普通的UIView,中间有一张图片,但看不到UIWindow/UIView的背景.

I'm trying to build an application that is launched has a transparent background, in practice, showing only the objects in view (buttons, labels etc etc) but not the background so you can see the background the user's home. In the example file you can see the purple square image at the center of the screen, in theory should be a normal UIView with a picture in the center but does not see the background of UIWindow/UIView.

有可能实现这样的事情吗?有人可以帮我吗?

Is possible to realize such a thing? Can anyone help me?

谢谢

推荐答案

有可能,尝试将窗口背景颜色设置为清除,以及视图控制器的视图背景颜色.

It might be possible, try setting the window background color to clear, as well as the view controller's view background color.

我说这可能是因为我在使用某些应用时看到了我的主屏幕,例如,Facebook 应用有时会在转换期间显示它(这可能是 Facebook 或操作系统上的错误).

I say it might be possible because I've seen my home screen while using some apps, for example, the Facebook app sometimes shows it during a transition (it might be a bug on either Facebook or the OS).

无论如何,我很确定这种应用会被 App Store 拒绝,所以请注意.

Anyway, I'm pretty sure that kind of app would be rejected from the App Store, so be advised.

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

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