PYGradientCycle 1.1× 测试已测试✗ 语言语言 Obj-CObjective C许可证 自定义 发布上次发布2015 年 10 月由 Push Chen 维护。安装指南×PYGradientCycle 的安装指南你希望将以下代码添加到 Podfile 中:target 'MyApp' do pod 'PYGradientCycle', '~> 1.1' end然后在终端内或在 CocoaPods.app 中运行 pod install或者为了进行测试运行,运行以下命令:pod try PYGradientCycle查看 PodspecGitHub 仓库CocoaPods.org 上的页面PYGradientCycle 1.1作者Push Chenpushchen.comlittlepush/PYGradientCycleGitHub 仓库 在 iOS 中的渐变周期 我不确定这是否是最好的解决方案。 现在我使用缓存的 CGContextRef 来提高 CPU 使用率。 为了绘制增加百分比动画,CPU 使用率不超过 25%,但减小动画还是不行。