简体   繁体   中英

Pick a photo by using iPad camera and get the file name

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?

如果拍摄图像并将其保存到照片库中,文件名实际上对您没有多大意义,但是,如果您使用ALAssetsLibrary并使用writeImageToSavedPhotosAlbum:orientation:completionBlock:保存图像,则在完成块中,您将获得目标NSURL *assetURL ,您可以将其拆分以获取文件名。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM