-(void) Watermark {
UIImage *oldimage = [UIImage imagenamed:@ "pre-prepared picture, you will be on this account image to add a watermark"];
Uigraphicsbeginimagecontextwithoptions (Oldimage.size, NO, 0.0);
[Oldimage drawinrect:cgrectmake (0, 0, OldImage.size.width, oldImage.size.height)];
UIImage *waterimage = [UIImage imagenamed:@ "This is the logo you are going to place on the pre-prepared image"];
CGFloat waterw = 50;
CGFloat waterh = 25;
CGFloat Waterx = oldimage.size.width-waterw-5;
CGFloat watery = oldimage.size.height-waterh-5;
CGRect waterrect = CGRectMake (Waterx, watery, waterw, waterh);
[Waterimage Drawinrect:waterrect];
Get the final picture
UIImage *newimage = Uigraphicsgetimagefromcurrentimagecontext ();
Uigraphicsendimagecontext ();
Self.imageView.image = NewImage;
NSData *data = uiimagepngrepresentation (newimage);
[Data writetofile:@] Save the finished picture to the file path/Picture name. png "Atomically:yes";
}
A simple implementation of the iOS watermark