Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

HarryWorksInc

macrumors regular
Original poster
Feb 21, 2010
179
0
Hey I have an application i'm working on in which I take a picture of the screen:
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.
 

HarryWorksInc

macrumors regular
Original poster
Feb 21, 2010
179
0
Do you know how?

Do you know how I would do that, sorry i'm not so hot with UIImages I haven't played with them to much. This is my first app dealing with editing images.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.