UIImage *image = [UIImage imageNamed:@"knockwurst.jpg"];
UIGraphicsBeginImageContextWithOptions(image.size, NO, 0);
[image drawAtPoint:CGPointZero];
NSString *str = @"小宝宝小宝宝小宝宝小宝宝小宝宝/n小\n宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝/n小宝\n宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝/n\n小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝小宝宝";
UIFont *font = [UIFont fontWithName:@"ChalkboardSE-Bold" size:30];
NSMutableDictionary *dic = [[NSMutableDictionary alloc]init];
dic[NSForegroundColorAttributeName] = [UIColor greenColor];
dic[NSFontAttributeName] = font;
[str drawAtPoint:CGPointMake(100, 100) withAttributes:dic];
UIImage *image1 = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();