文章分类 -  CALayer

摘要:转自http://blog.csdn.net/totogo2010/article/details/86050921、什么是CALayerCALayer是个简单的类,它是用来在屏幕上显示内容展示的矩形区域。靠,这是不描述UIView的话吗?其实他们是有区别的。每个UIView都有一个根CALayer,UIView在这个layer上描绘东西。那怎么访问这个layer呢,很简单:CALayer*myLayer=myView.layer; CALayer有这么些属性,可以设置改变层的显示:层的大小和位置层的背景颜色层的内容(图像,core graphics)层的的圆角,半径层的阴影设置等等....2 阅读全文
posted @ 2013-03-26 14:35 不曾拥有 阅读(241) 评论(0) 推荐(0)
摘要:关键代码预览: 1 UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 300.0, 225.0)]; 2 view.center = self.view.center; 3 view.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | 4 UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingF... 阅读全文
posted @ 2012-08-31 14:30 不曾拥有 阅读(192) 评论(0) 推荐(0)