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

查看:108
本文介绍了透明的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会被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天全站免登陆