I’m quite short on space. My navigation bar is full. Ideally I’m looking for something below the navigation bar which once tapped will change the sort order of the rows in my uitableview.
I’m looking for options ?
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.
One option is to add
tableHeaderViewto the table view with the buttons which trigger the sorting action. If your table view contains only one section you can add it as section header(better use tableHeaderView).Adding
UISegmentedControlwith the segments(for different types of sorting) as the tableHeaderView is an elegant way.