1、layer动画
1.1、实例化CAlayer
1.2、圆角处理 cornerRadius
1.3、添加图片contents
eg: kkLayer . contents = (id)imageTmp . CGImage
1.4、移动layer的position CABasicAnimstion
eg: 1、CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@“position"]
2、animation.fromValue = [NSValue valueWithCGPoint:layer.position]
1.5、以坐标轴旋转 CGPoint toValue
eg: 1、 CGPoint toPoint = layer.position
2、 以X轴 toPoint.x +=180 以Y轴 toPoint.y +=350
3、 animation.toValue = [NSValue valueWithCGPoint:toPoint]
1.6、对layer缩放 CABasicAnimation
1.7、动画组合 CAAnimationGroup
1.8.、完成后的反向完成 animations(间隔时长:duration)
1.9、循环次数(默认0) repeatCount
1.10、开始动画 [layer addAnimation:group forKey:@"layerMove"]
网络编程
1、客户端,服务器,请求,响应
2、URL 唯一的,基本格式:协议/主机地址/路径
常用的协议 http、file、mailto、ftp
3、HTTPS协议(访问比较安全)
4、实例化NSURL
5、JS解析数据 NSJSONSerialization JSONObjectWithData
6、遍历数组 (id obj in _arr)
7、去重
eg: NSSet *set = [NSSet setWithArray:_arr2];
_array = set.allObjects;
8、 可变数组添加元素
[_arr1 addObject:obj[@"city"]]
415

被折叠的 条评论
为什么被折叠?



