superview.superview上的透明UILabel textColor(排序)

Dim*_*ian 12 cocoa objective-c uilabel ios

我希望获得与iOS 7的新iTunes远程更新相同的效果UILabel.

如果你看这个屏幕:

http://313e5987718b346aaf83-f5e825270f29a84f7881423410384342.r78.cf1.rackcdn.com/1383617182-2013-11-05_03.05.58_04.png

(右边的那个)你会注意到UILabel文字颜色是没有黑色面具的背景模糊专辑封面.

目前我有透明的UILabeltextColor(http://cl.ly/SInK),我的代码类似于https://github.com/robinsenior/RSMaskedLabel

我的第一个假设是拥有这样的视图层次结构

UIImageView (Light blurred image)
    |
UIImageView/UIView (Dark blurred image or just a dark mask for the superview)
    |
UILabel (And all my other view). 
Run Code Online (Sandbox Code Playgroud)

我想UILabel在第一个UIImageView上有一个透明的文本颜色,忽略第二个/ Mask).

我无法围绕解决方案来实现这一效果.

Dim*_*ian 5

由于iOS 8 Apple提供了一个新类UIVibrancyEffect,它可以添加到UIVisualEffectView中.这与UIBlurEffect相结合可以获得与上面截图完全相同的结果.

资料来源:https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIVibrancyEffect/index.html