11 2018 档案

CAAnimationDelegate 代理方法没调用
摘要:CAAnimationDelegate 代理方法没调用 应该在 addAnimation调用之前设置代理 阅读全文

posted @ 2018-11-15 14:57 土匪7 阅读(415) 评论(0) 推荐(0)

CABasicAnimation 划线动画
摘要:CGFloat animateDuration = 2; UIBezierPath *bezierPath = [[UIBezierPath alloc] init]; CGPoint centerFromP = noAnimateView.center; [bezierPath moveToPoint:centerFromP]; CGPoint cen... 阅读全文

posted @ 2018-11-14 16:30 土匪7 阅读(146) 评论(0) 推荐(0)

获取数组中元素的下标
摘要:NSInteger index = [self.addImageArr indexOfObject:noAnimateView]; 阅读全文

posted @ 2018-11-14 11:13 土匪7 阅读(1610) 评论(0) 推荐(0)

转载:SDWebImage支持URL不变时更新图片内容
摘要:转载 http://blog.handy.wang/blog/2016/01/29/sdwebimagehuan-cun-zhi-tu-pian-urlbu-bian/ 基于这一现象,我们来进行分析。 客户端第一次请求图片时,Charles抓包得知response header里有一个名为Last- 阅读全文

posted @ 2018-11-13 07:41 土匪7 阅读(235) 评论(0) 推荐(0)

读书笔记-iOS核心动画高级技巧
摘要:如果不使用+imageNamed:,那么把整张图片绘制到CGContext可能是最佳的方式了。 这里我们利用了CALayer的KVC来存储和检索任意的值,将图层和索引打标签。 使用KVC打标签 阅读全文

posted @ 2018-11-13 06:50 土匪7 阅读(113) 评论(0) 推荐(0)

ios 数组打乱顺序
摘要:NSArray+YYAdd 这个shuffle方法不知道行不行 /** Sort the object in this array randomly. */- (void)shuffle; 阅读全文

posted @ 2018-11-01 12:04 土匪7 阅读(707) 评论(0) 推荐(0)