Does anyone know how to get the selected image name (the one from photo gallery) after presenting an UIImagePickerController?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With the help of ALAsset you can able to achieve this.
Step 1: Get the
Assetfor the selected Image from theUIImagePickerStep 2: Get the ALAssetRepresentation for that
Asset.Step 3:
ALAssetRepresentationclass has a property calledfileNameReturns a string representing the filename of the representation on disk.
This Sample Code will Helps you…
NOTE: It works only in iOS 5 and later.