摘要: description是所有类都有的一个方法。我们重写这个方法,可以自定义实例输出的信息。比如我们创建一个Person类:在.h文件中添加两个属性:#import @interface Person : NSObject@property (strong, nonatomic) NSString *... 阅读全文
posted @ 2014-12-05 15:15 GarveyCalvin 阅读(1465) 评论(0) 推荐(0) 编辑
摘要: 获取画布:CGContextRef context = UIGraphicsGetCurrentContext();设置颜色的三种方法:[[UIColor blueColor] setStroke];CGContextSetStrokeColorWithColor(context, [UIColor... 阅读全文
posted @ 2014-12-05 14:30 GarveyCalvin 阅读(429) 评论(0) 推荐(0) 编辑