ios - 如何在矢量化图像周围制作动画渐变边框(适用于 iPad 的 Objective-C)?

标签 ios objective-c ipad ios6 gradient

你能帮我找到一个正确的方法来在图像周围制作动画渐变边框吗 this

我有矢量化图像(Adobe Illustrator、EPS 等)。所以,我想制作一个围绕对象旋转的边框。

我应该寻找什么方向?

最佳答案

检查这个one它以前对我有帮助,我认为你可以使用相同的逻辑来制作你的动画。

通过使用形状图层:

 [shapeLayer setBounds:shapeRect];
    [shapeLayer setPosition:CGPointMake(160.0f, 140.0f)];
    [shapeLayer setFillColor:[[UIColor clearColor] CGColor]];
    [shapeLayer setStrokeColor:[[UIColor blackColor] CGColor]];
    [shapeLayer setLineWidth:1.0f];
    [shapeLayer setLineJoin:kCALineJoinRound];

关于ios - 如何在矢量化图像周围制作动画渐变边框(适用于 iPad 的 Objective-C)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16009211/

相关文章:

objective-c - 当手放在 iPad 屏幕上时,如何仅检测一次触摸?

objective-c - UIActivityIndi​​cator 和 GCD/线程

ios - 不访问 Objective-C 中的函数

ios - 如何在设置按钮 alpha 的同时更改 UIButton 的 alpha

iphone - IOS 中奇怪的 float 问题

xcode - 如何在 Swift 中的当前 View 顶部呈现模态

ios - 无法播放AVAudioPlayer中文档中的文件

ios - Swift - 将函数分配给工具栏按钮项

ios - NSFetchedResultsController 用于在 Apple Watch 上显示记录?

ios - 什么是 iOS iPad 启动板图像分辨率?