摘要: 1.NSKernAttributeName: @10 调整字句 kerning 字句调整2.NSFontAttributeName : [UIFont systemFontOfSize:_fontSize] 设置字体3.NSForegroundColorAttributeName :[UIColor... 阅读全文
posted @ 2016-01-07 16:54 丑蛋蛋 阅读(177) 评论(0) 推荐(0)
摘要: + (NSString *)pathWithComponents(NSArray *)components根据components中的元素来构建路径.- (NSArray *)pathComponents解析路径,返回构成路径的各个部分.- (NSString *)lastPathComponent... 阅读全文
posted @ 2016-01-07 15:53 丑蛋蛋 阅读(187) 评论(0) 推荐(0)
摘要: UIGraphicsBeginImageContext创建一个基于位图的上下文(context),并将其设置为当前上下文(context)。方法声明如下:参数size为新创建的位图上下文的大小。它同时是由UIGraphicsGetImageFromCurrentImageContext函数返回的图形... 阅读全文
posted @ 2016-01-07 15:31 丑蛋蛋 阅读(1110) 评论(0) 推荐(0)
摘要: 设置UIImage的渲染模式:UIImage.renderingMode着色(Tint Color)是iOS7界面中的一个.设置UIImage的渲染模式:UIImage.renderingMode重大改变,你可以设置一个UIImage在渲染时是否使用当前视图的Tint Color。UIImage新增... 阅读全文
posted @ 2016-01-07 15:12 丑蛋蛋 阅读(265) 评论(0) 推荐(0)