I want to create 10 buttons using an array. How to create it? I am using
array = [[[NSArray alloc] initWithObjects:button1, button2] retain];
But It tells Missing Sentinel in Function Call. Where, I am wrong?
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.
Now your array has retain count 1 after allocation, so you don’t have to retain it.
When you don’t need the array, just release it