Hey I have an application i'm working on in which I take a picture of the screen:
and then I attach the photo to an email, but I need to get the string name of the image. Does anybody know how I would do that? Or if thats possible.
HTML:
CGRect screenRect = [[UIScreen mainScreen] bounds];
UIGraphicsBeginImageContext(screenRect.size);
CGContextRef ctx = UIGraphicsGetCurrentContext();
[[UIColor blackColor] set];
CGContextFillRect(ctx, screenRect);
[self.view.layer renderInContext:ctx];
UIImage *image1 = UIGraphicsGetImageFromCurrentImageContext();
Image2Share = image1;
UIGraphicsEndImageContext();
[self Sendmessage];
and then I attach the photo to an email, but I need to get the string name of the image. Does anybody know how I would do that? Or if thats possible.