Suppose, I have added one folder name “Images” in my project.How can I get the path to that folder? My main intention is to get the number of pictures in “Images” folder.
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.
You should work a bit more on your question: it assumes a lot and requires the reader to guess.
So I guess this means you added it as a folder reference
And I guess that you want to do that at run time from your application, not at build-time from Xcode.
If so, you could do something like:
This code does not assume that all images are of the same kind.