我使用下面的代码从图库中选择照片或直接使用相机
- (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;
}
}
我正在寻找创建我自己的应用程序的自定义目录(文件夹)以将挑选的照片保存在 iPhone 中。我需要你的帮助
- 创建我自己的应用程序的自定义目录
- 想要将挑选的照片保存在该自定义目录中。
我是iPhone
开发中的新人,所以等待您的宝贵帮助。提前致谢。