Transparent iphone application

只谈情不闲聊 提交于 2019-11-28 10:38:51

问题


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?

thanks


回答1:


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

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).

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




回答2:


No. It's not possible using the official SDK. I'm interested to know why you would want to do this?



来源:https://stackoverflow.com/questions/9514376/transparent-iphone-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!