摘要: Runtime 首先需要导入<objc/runtime.h> 一、Class 获取类的成员变量 Ivar *class_copyIvarList(Class cls,int *outCount); unsigned int count; Ivar *ivars = class_copyIvarLis 阅读全文
posted @ 2016-08-01 14:20 Emerys 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Socket 一、Server int server_fd,client_fd; // 地址蔟、socket类型、通信协议 server_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if (server_fd < 0) { printf("sock 阅读全文
posted @ 2016-08-01 14:19 Emerys 阅读(141) 评论(0) 推荐(0) 编辑
摘要: CALayer 1.3D变换中的透视效果,由矩阵中的m34元素控制,用于按比例缩放x、y,以此计算离视角有多远。m34默认值是0,通过设置 m34 = -1.0 / d 来应用透视效果,d代表视角相机与屏幕的距离,单位是像素,其值一般为 500 ~ 1000 例如旋转一个3D方块,使其呈现透视效果。 阅读全文
posted @ 2016-08-01 14:18 Emerys 阅读(100) 评论(0) 推荐(0) 编辑
摘要: UIKit Animation 1.属性动画 - (void)changeFrameAnimation { [UIView beginAnimations:@"frameAnimation" context:nil]; [UIView setAnimationDuration:0.8]; [UIVi 阅读全文
posted @ 2016-08-01 14:17 Emerys 阅读(162) 评论(0) 推荐(0) 编辑
摘要: CoreAnimation 1.CABasicAnimation // position CABasicAnimation *ba = [CABasicAnimation animationWithKeyPath:@"position"];// boundsCABasicAnimation *ba 阅读全文
posted @ 2016-08-01 14:16 Emerys 阅读(194) 评论(0) 推荐(0) 编辑