Welcome, Guest
Username Password: Remember me

Want to divide cells into sections based on objects.
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Want to divide cells into sections based on objects.

Want to divide cells into sections based on objects. 1 year, 6 months ago #1

I've been looking through the classes and I'm not sure how to tackle this. I have an array (mutable) of dictionaries (or classes) that I'd like to use to populate a tableView with each dictionary (or class) having it's own section and the cells in each section derived from an array of keys (or property names).

In my case I don't want the cell to be selectable or to push a detail view, just to display information. Can I do that with SCT?

Gary
  • panamind
  • OFFLINE
  • Senior Boarder
  • Posts: 77
  • Karma: 4

Re: Want to divide cells into sections based on objects. 1 year, 6 months ago #2

Hi Karl,

It seems that an SCArrayOfObjectsModel is a perfect fit for you. For an example on how to have STV automatically generate the sections for you, please check the Core Data sample application, under the "People" tab.

On a side note, please note that you extend the definition of dictionaries using an SCDictionaryDefinition, as opposed to an SCClassDefinition for your normal classes. For an example of this, please check the dictionary editor tab in the Samples App.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72
  • Page:
  • 1
Time to create page: 0.67 seconds