Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改 CAGradientLayer.locations 属性动画?
我想制作一些像呼吸灯一样的效果,我尝试在事务中更改 CAGradientLayer 的位置属性,但没有任何反应。
所以我该怎么做 ?有没有更好的办法?