In UITableView we have headers
For example
Say I want to group businesses by the building they are in.
BuildingA 10
Business1
Business2
Business3
Business4
How do I arrange so that the 10 is on the right side of the header
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 can override
tableView:viewForHeaderInSection:to add your own extra label whose rect is somewhere on the right side, likeCGRectMake(280,5,30,20);. You should also set it so the text aligns right.Note that if you do this, you also have to provide the left-side label (since it is no longer there) and you must override
tableView:heightForHeaderInSection:as well.