I created a UITableView in Storyboard.
For the prototype cell, I use custom cell and added 3 UILabel onto it.
The question is when I want to update the content for the 3 UILabel, how can I get the references of them?
Thanks
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.
The simplest way is to assign tags to the labels in storyboard. Then, when you have the cell and need the label – like in cellForRowAtIndexPath – you can do this:
and so on, where you’ve #defined those constants to match the tags in storyboard.