UIImage *personImage = [UIImage imageNamed:@"1.png"]; // 大图
UIImage *hatImage = [UIImage imageNamed:@"20.png"]; //水印
CGSize finalSize = [personImage size];
CGSize hatSize = [hatImage size];
UIGraphicsBeginImageContext(finalSize);
[personImage drawInRect:CGRectMake(0,0,finalSize.width,finalSize.height)];
[hatImage drawInRect:CGRectMake(0,0,hatSize.width,hatSize.height)];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(50, 50, 220, 220)];
[imageView setImage:newImage];
[self.view addSubview:imageView];