如何在UITableViewCell的背景中实现实时iOS7模糊效果 [英] How to implement a real time iOS7 blur effect in the UITableViewCell's background

查看:174
本文介绍了如何在UITableViewCell的背景中实现实时iOS7模糊效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望UITableViewCell的背景具有iOS7模糊效果。它是动态的,意味着,当单元格滚动时,它的模糊背景应该根据下面的颜色而改变。

I want the UITableViewCell's background to have an iOS7 blur effect. It's dynamic, means, while the cell is scrolling, its blurred background should change depend on the color below.

我发现了一些相关主题。

I found some relative topics.

iPhone SDK - 磨砂玻璃(iOS 7模糊)效果。它介绍了GPUImage。它关于静止图像,我没有弄清楚如何制作动态图像。

iPhone SDK - Frosted Glass (iOS 7 Blur) Effect. It introduce GPUImage. It about still image, I didn't figure out how to make a dynamic one.

iOS 7动态模糊效果,如控制中心。它使用UIToolbar作为单元格的背景,利用系统内置的模糊效果。它工作得很好,但只是透明度有点低。我已经调整了工具栏的alpha值,但它并不理想。

iOS 7 dynamic blur effect like in Control Center. It use UIToolbar as the background of cell, taking advantage of system built-in blur effect. It works great, but just the transparency is a little low. I have adjusted the alpha of tool bar, but it doesn't ideal.

推荐答案

就像你说的那样,有可能使用UIToolbar来获得实时模糊。这是一个小小的类来获得所需的外观修改:

Just like you said, there is possibility to use UIToolbar to get real-time blur. Here is a little class to get desired modification of appearance:

https://github.com/ivoleko/ILTranslucentView

这篇关于如何在UITableViewCell的背景中实现实时iOS7模糊效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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