I have a UITableViewCell, and in it i have two labels side by side. the one is editable. But the other one i want repopulated with the actual row number of the cell…
Is this possible at all? where would i add the code to perform the calculation?
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.
In the cellForRowAtIndex method set the label’s text variable to the indexPath.row.
However, if you are using a UITableView subclass, make sure that you have made the NSObject subclass of it first with a property of someLabel.