Really beginner question here.
I have an NSArray of images which in its last line has an error in Xcode saying that the “initializer element is not constant”.
any help please?
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’re initializing your NSArray outside of a valid scope (ie, not inside a function or method).
For example, the following will produce your error:
To fix it, you’d do something like: