生成带文本的UIImage
摘要:-(UIImage *)createTextImg:(NSString *)imgName text:(NSString *)text1{ UIImage* img = [UIImage imageNamed:imgName]; NSAssert(img, @""); int w = img.size.width; int h = img.size.height; float scale = img.scale; w *= scale; h *= scale; // 画图 CGColorSpaceRef colorS...
阅读全文
posted @ 2014-01-23 10:41