I am using an UITableView with checkmarks and I want to set a label count which shows how many items are checkmarked in the table view. For example if the table contains 18 items with 2 checks,it shows 2/18. Can any one help me to code?
Share
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.
Assuming that this means that these cells will be selected, you could try this:
alternatively, you could keep a running tally of an integer and add to it or subtract from it every time a cell is selected or deselected.