Possible Duplicate:
Save An Image To Application Documents Folder From UIView On IOS
I want to store image in my apps folder programmatically which I taken by UIImagePiker (camera or photogallery). I am a beginner in iOS programming.
Possible Duplicate:
Save An Image To Application Documents Folder From UIView On IOS
I want to store image in my apps folder programmatically which I taken by UIImagePiker (camera or photogallery). I am a beginner in iOS programming.
Saving an image:
-(void)saveImage:(UIImage*)image
{
NSString *imagePath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/aName.png"];
[UIImagePNGRepresentation(image) writeToFile:imagePath atomically:YES];
}