This question is already an answer here
- 3 answers
I I am creating a picture in which
1) I want to take a picture in a picture which I know how to do 2) Now I want to save that photo only to the specific folder of an application. Is it possible to do this. Any help would really be appreciated. Try
thanks
- post
- post> itemprop = "text">
You can use the following code in the UIImagePickerControllerDelegate Representative implementation
// saving path NSArray * Path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, Yes) to receive; NSString * document directory = [path item overindexx: 0]; NSString * imagePath = [document directory stringbapping padcampaint: @ "latest_photo.png"]; // Remove the image from the picker and save it NSString * mediaType = [Information Forkey: UIImagePickerControllerMediaType]; If ([MediaType isEqualToString: @ "public.image"]) {UIImage * editedImage = [information objectForKey: UIImagePickerControllerEditedImage]; NSDTA * WebData = UIMJPNGR Presentation (edited image); [Webdata instrument file: image path atom: yes]; }}
- post
No comments:
Post a Comment