我用下面的代碼來接從畫廊的照片或直接使用相機創建iPhone自定義圖片庫
- (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
開發的新人,所以等待您的寶貴幫助。 在此先感謝。
非常感謝創建伊娃,我會盡力.. – 2013-02-11 04:36:01
這裏'storePath'是什麼?它本身就是'路徑'嗎? – 2013-02-11 05:19:34
它是你想要存儲圖像的路徑... – iPatel 2013-02-11 05:21:45