I am creating labels in a loop.
How can i make it so each label has a different identifier so i can retrieve the text of a specific one at a later time?
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 need to add the label to a dictionary, and set the key to your labelName, and the object to your UILabel.
Then, whenever you want to access the variable, you use the objectForKey:myVar method of the NSDictionary