سؤال

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