How can I add the user background into the app as

2019-03-31 21:57发布

I want to know if its possible to have the user set background as the actual app background in iOS 7; similarly to how Newsstand gives the user background as a translucent element when one doesn't have any magazines set in it.

1条回答
来,给爷笑一个
2楼-- · 2019-03-31 22:44

In the plist set UIApplicationIsOpaque to NO (false), then set, self.window.opaque = NO and self.window.backgroundColor = UIColor.clearColor.

Lastly set all view controllers you want to show background to default color (clear), this will show the background not give it the blur effect, that's a different story.

I will warn you, it works like a charm, but a lot of developers are experiencing an issue, that plist property is not being validated and a solution hasn't been found/posted yet. So for personal apps it's cool, for submitting apps you might have to wait or possibly just not do it for now.

查看更多
登录 后发表回答