Welcome, Guest
Username Password: Remember me

Setting selected value on SCArrayOfStringsSection
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Setting selected value on SCArrayOfStringsSection

Setting selected value on SCArrayOfStringsSection 1 year, 8 months ago #1

Is it possible to set a selected value on the SCArrayOfStringsSection class? I use the SCArrayOfStringsSection to display a list of cells that when tapped on will display a checkmark on the right to indicate which one is selected. When I display that list of values initially, I want to set the checkmark on the selected value. Is there a way to do this? There doesn't seem to be a delegate for tableView:cellForRowAtIndexPath or tableView:willDisplayCellAtIndexPath so I can't set the checkmark on the cell.

I currently have a tableview which displays 2 sections. The first section displays one cell which when tapped brings you to a new screen which lets you select a Field object in my app. The second section displays a list of calculation types that can be performed on that field. There you tap on a calculation type to select the field.

Any ideas how to handle this? Also, I notice that when I tap on a row the turn on the checkmark for that field, the blue selection background does not display, but my checkmark does. By the way, only one checkmark can be on at a time for the entire section.

Thanks,

Brendan
  • tapforms
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 4
Thanks!
Brendan
www.tapforms.com

Re: Setting selected value on SCArrayOfStringsSection 1 year, 8 months ago #2

Never mind. I figured it out. I didn't know about:

- (void)tableViewModel:(SCTableViewModel *)tableViewModel willConfigureCell:(SCTableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath

but I saw it on another post. Works great!

Sorry to bother you.

Thanks!

Brendan
  • tapforms
  • OFFLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 4
Thanks!
Brendan
www.tapforms.com
  • Page:
  • 1
Time to create page: 1.26 seconds