Possible to allow a uitableview to allow multiple and single selections?

Essentially I have a list of items, I want to have some type of checkbox on the end where they can select multiple items. I also need them to be able to just select one of the rows and have it open up a detail view. Is this possible? Or do I need to do something like they do with the messages where you choose the edit button to select them and show an additional button to take action on the selected?


Set your cell's UITableViewAccessoryType property to UITableViewCellAccessoryCheckmark to make a check mark show up on a certain cell, you'll have to keep track of which cell's are checked on your own though, since this property doesn't track.

So have an array or something that represents which cells ar checked and which aren't, then in your didSelectRowAtIndexPath: method you can modify the data in the array to reflect the cell's selected state, and call [tableView reloadData] so the checkmark shows up right away.

I found the answer, there's an option to allow multiple selections on edit mode.

Need Your Help

Rails cancan not working properly

ruby-on-rails associations cancan

I am trying to build a blog where there will be 2 users admin and normal user.Admin can view every post and comment .Whereas normal user can view his only post and comment .I have applied my logic ...

Handlebars If/Else Condition Outputting Wrong Value

javascript if-statement handlebars.js

I have function that returns a value to be used in my view only if there is a value present. I am then referencing this value in my if condition for one view, where handlebars correctly displays the