I would like to use an ActionSheet for sorting options in an app containing many table views with navigation controllers. My problem is that I cant seem to keep the last selected index on the sheet after poping back one level or quitting the app. The index value defaults back to 0 and I just cant seem to change its initial value. Its possibly something trivial but would really appreciate some help with it.
Thanks.
I would like to use an ActionSheet for sorting options in an app containing
Share
Do you mean that you want the
UIActionSheeton subsequent appearances to reflect the current setting?If so, it may not be the correct UI metaphor to use, since it’s just a series of buttons, and there is nothing to distinguish one button from another other than which one cancels an operation or is destructive, and neither of those seem to fit the “sort order” setting you want to keep track of.
What about trying a simple
UITableViewwith aUITableViewCellthat has anaccessoryTypeofUITableViewCellAccessoryCheckmark? Like in Figure 1-3 here.