简体   繁体   English

如何在iOS 7中将用户背景添加到具有模糊效果的应用程序中?

[英]How do I add a user background into the app with a blur effect in iOS 7?

Basically I want to know if it's possible to add an effect similar to when you open Newsstand with no magazines and you encounter an effect where you can kind of see the user wallpaper with a blur effect added onto it. 基本上,我想知道是否可以添加类似于在没有杂志的情况下打开报亭的效果,并且遇到一种效果,您可以在其中看到带有模糊效果的用户墙纸。 I sort of managed to get the wallpaper onto the app with a few .plist settings changes, but want to know if theres a better way that also adds the blur effect. 我设法设法通过一些.plist设置更改将墙纸放置到应用程序上,但想知道是否有更好的方法还可以增加模糊效果。

regards, Patricio 问候,帕特里西奥

You can use the UIImage category that Apple provides in its sample code, that allows you to blur a UIImage with a variety of styles and colours. 您可以使用Apple在其示例代码中提供的UIImage类别, UIImage类别使您可以模糊具有各种样式和颜色的UIImage

https://developer.apple.com/downloads/index.action?name=WWDC%202013 https://developer.apple.com/downloads/index.action?name=WWDC%202013

Search the page for UIImageEffects , download it. 在页面上搜索UIImageEffects ,然后下载。 Open the project, and you'll find a UIImage category you can move to your project. 打开项目,您会找到一个UIImage类别,可以将其移至您的项目。

More on this topic can be found in the Engaging UIs in iOS7 WWDC 2013 talk. 有关此主题的更多信息,请参见iOS7 WWDC 2013的“参与UI”演讲。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM