UIToolbar animate alpha ios7

I have a view which has a toolbar as it's first subview (background) and then labels and imageviews on top of that. I'm trying to fade the view out but the toolbar alpha doesn't animate. It changes from 1.0 to 0.0 instantly while the other subviews animate their alpha.

I've tried disabling allowsGroupOpacity but it still doesn't work. In fact when I disabled that, the translucent nature of the toolbar is lost completely. It becomes transparent.

I've even tried enabling shouldRasterize and rasterizationScale but nothing works.

Anything else I can try?

EDIT:

I figured it out! I needed to set the allowsGroupOpacity to NO on the superview's layer and not the toolbar's layer.


allowsGroupOpacity的图层上设置allowsGroupOpacityNO ,而不是工具栏的图层可以解决此问题。

链接地址: http://www.djcxy.com/p/90320.html

上一篇: iOS 7中UITableView的contentInset规则?

下一篇: UIToolbar动画alpha ios7