Welcome, Guest
Username Password: Remember me

Indexing a Tableview
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Indexing a Tableview

Indexing a Tableview 1 year, 9 months ago #1

Is it possible to provide an alphabetical index to a section table view? I have hundreds of items in my list.
  • baberuth22
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • Karma: 2

Re: Indexing a Tableview 1 year, 9 months ago #2

You can index Sensible TableView the same way a UITableView is indexed using the sectionIndexTitles property of SCTableViewModel.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Indexing a Tableview 1 year, 9 months ago #3

I understand that, but I would like to index a SCPropertyTypeSelection and I don't know what delegate would handle customization of the table generated by a SCPropertyTypeSelection. I would also like to add an image for a named color picker. Any suggestions?
  • baberuth22
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • Karma: 2

Re: Indexing a Tableview 1 year, 9 months ago #4

Are there any delegates for the table generated by SCPropertyTypeSelection?
  • baberuth22
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • Karma: 2

Re: Indexing a Tableview 1 year, 9 months ago #5

UITableView is designed to have an index for the whole table, and not for individual sections. Maybe one idea is for us to create a new subclass of SCTableViewModel called SCTableViewSelectionModel, instead of using a normal SCSelectionSection. We'll definitely consider this in our next release.

As for your other question, yes all Sensible TableView sections and cells provide delegates that allow you to fully customize the generated tables.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Indexing a Tableview 1 year, 9 months ago #6

Thanks so much! If I have multiple SCPropertyTypeSelections in one table, how would I set up access to and differentiate between each delegate method?

Thanks so much tarekskr!
  • baberuth22
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • Karma: 2
  • Page:
  • 1
  • 2
Time to create page: 1.54 seconds