I have used below code to pick photo from gallery or directly using camera
- (void)actionSheet:(UIActionSheet *)actionSheet
clickedButtonAtIndex:(NSInteger)buttonIndex {
UIImagePickerController *imagePickerController =
[[UIImagePickerController alloc]init];
imagePickerController.delegate = self;
if (buttonIndex == 0) {
photoButtonNum=0;
[self presentViewController:imagePickerController
animated:YES
completion:nil];
imagePickerController.sourceType =
UIImagePickerControllerSourceTypePhotoLibrary;
} else if (buttonIndex == 1) {
photoButtonNum=1;
[self presentViewController:imagePickerController
animated:YES
completion:nil];
imagePickerController.sourceType =
UIImagePickerControllerSourceTypeCamera;
}
}
i am looking to create a custom directory(folder) of my own application to save the picked photos in iPhone. I need your help to
- create a custom directory of my own app
- want to save the picked photo in that custom directory.
I am a new guy in iPhone development, so waiting for your valuable help.
Thanks in advance.
This site is helpful for you to create and save Photo in your Directory
And Also you can use following code.