How to get UIImagePicker selected image name?
问题 Does anyone know how to get the selected image name (the one from photo gallery) after presenting an UIImagePickerController? 回答1: With the help of ALAsset you can able to achieve this. Step 1: Get the Asset for the selected Image from the UIImagePicker Step 2: Get the ALAssetRepresentation for that Asset . Step 3: ALAssetRepresentation class has a property called fileName - (NSString *)filename Returns a string representing the filename of the representation on disk. This Sample Code will