문제

I've to develop an iPad app in which I have to create a form and to capture a pic by using the iPad camera. The output of this app should be a csv file in which there are a correspondence between photo and data. I guessed that I've to use the filename of the pics. My solution is to create a csv with following field:

Name,Surname,Sex,City,Mail,Nation,IMAGE FILE NAME

The question is: it's possible to get the IMAGE FILE NAME after I took it with the iPad camera?

도움이 되었습니까?

해결책

Not that the file name actually means much to you if the image is taken and saved into the photo library, but, if you use ALAssetsLibrary and save the image with writeImageToSavedPhotosAlbum:orientation:completionBlock: then in the completion block you get the destination NSURL *assetURL, which you can split to get a file name.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top