my googling has turned up nothing (that works). i want to save the UIImage using UIImageJPEGRepresentation, but i'm unable to get it to work in in the iPhone simulator. it doesn't crash, but it doesn't write the image either... Code: NSData * imageData = UIImageJPEGRepresentation(image.image, 1.0); NSString *path = [[NSString alloc] initWithString:@"~/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE/SAVE_IMAGE_TEST1.JPG"]; [imageData writeToFile:path atomically:YES]; first off, is it even possible to do this in simulator?? if so, can i please get an example? ideally it would save to the Photo Library that can be accessed in the simulator as i want this to be as close to the real deal as possible, but anywhere on my hard disk will work if this isn't possible. second, i'm using the imagePickerController to grab an image and then edit it, but when i save i want to save to the current directory where the image came from, but use a different file name of course. how to i get the current directory? thanks!