开发者

Overlaying an animation on top of UIView

开发者 https://www.devze.com 2023-04-08 03:47 出处:网络
What is the best way to overlay an animated gif on top of a UIView? I have an animation of snowfall that I would like t开发者_运维百科o lay on top of a view, yet still retain interaction with the view

What is the best way to overlay an animated gif on top of a UIView? I have an animation of snowfall that I would like t开发者_运维百科o lay on top of a view, yet still retain interaction with the view below.

Can this be accomplished with UIView animation, or would CoreAnimation be better (for compositing the layers).

Thanks again for the help


One of probably many options would be to set the UIView.backgroundColor = [UIColor clearColor], then place animation objects behind the view, or use a UIButton with a clear bg, etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消