上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: IOS提供两种创建图形的途径:1.OpenGL.2.Quartz、Core Animation、UIKit图形支持.UIKit的图形系统1.视图绘画周期:DrawRect方法,在任何时候,当视图的一部分需要重画时会调用。触发调用的四种情况:1>对遮挡您的视图的其它视图进行移动或删除操作。2>将视图的... 阅读全文
posted @ 2014-08-23 14:50 codeTao 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 第六章:Specialized Layers类别用途CAEmitterLayer用于实现基于Core Animation粒子发射系统。发射器层对象控制粒子的生成和起源CAGradientLayer用于绘制一个颜色渐变填充图层的形状(所有圆角矩形边界内的部分)CAEAGLLayer/CAOpenGLL... 阅读全文
posted @ 2014-08-23 14:45 codeTao 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 第五章:TransformsAffine TransformsCGAffineTransform是二维的Creating a CGAffineTransform主要有三种变化方法旋转:CGAffineTransformMakeRotation(CGFloat angle)缩放:CGAffineTra... 阅读全文
posted @ 2014-08-23 14:44 codeTao 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 第四章:Visual EffectsRounded Corners例子4.1cornerRadius源码在这里下载:http://www.informit.com/title/9780133440751[objc]view plaincopyprint?#import"ViewController.... 阅读全文
posted @ 2014-08-23 14:43 codeTao 阅读(365) 评论(0) 推荐(0) 编辑
摘要: [objc]view plaincopyprint?-(void)drawLayer:(CALayer*)layerinContext:(CGContextRef)ctx{CGFloatwidth=10.0f;//drawathickredcircleCGContextSetLineWidth(ct... 阅读全文
posted @ 2014-08-23 14:42 codeTao 阅读(295) 评论(0) 推荐(0) 编辑
摘要: Book DescriptionPublication Date:August 12, 2013Core Animation is the technology underlying Apple’s iOS user interface. By unleashing the full power o... 阅读全文
posted @ 2014-08-23 14:40 codeTao 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Objective-C 中核心处理字符串的类是 NSString 与 NSMutableString ,这两个类最大的区别就是NSString 创建赋值以后该字符串的内容与长度不能在动态的更改,除非重新给这个字符串赋值。而NSMutableString 创建赋值以后可以动态在该字符串上更改内容与长度... 阅读全文
posted @ 2014-08-23 10:45 codeTao 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.UITextField的初始化和设置 textField = [[UITextField alloc] initWithFrame:CGRectMake(120.0f, 80.0f, 150.0f, 30.0f)]; [textField setBorderStyle:UITextBorde... 阅读全文
posted @ 2014-08-23 09:51 codeTao 阅读(104) 评论(0) 推荐(0) 编辑
摘要: iOS7中计算UILabel中字符串的高度iOS7中出现了新的方法计算UILabel中根据给定的Font以及str计算UILabel的frameSize的方法.本人提供category如下:UILabel+StringFrame.h//// UILabel+StringFrame.h// Lab... 阅读全文
posted @ 2014-08-23 09:42 codeTao 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1 [[UIImage imageNamed:@"button_textured_30"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 5)];其中Insets这个参数的格式是(top,left,bottom,right),从上、左、下... 阅读全文
posted @ 2014-08-23 09:25 codeTao 阅读(476) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页