How to get a photo's original filename in iOS?

后端 未结 2 886
青春惊慌失措
青春惊慌失措 2020-12-05 15:24

I\'m currently developing an iPad app where a user will enter a photo filename in a text field (as part of field notes), then later they will import their photos to the iPad

2条回答
  •  悲&欢浪女
    2020-12-05 16:15

    I was able to get an image's original filename like this:

    NSString* originalFileName = [[asset defaultRepresentation] filename];
    

提交回复
热议问题