Welcome, Guest
Username Password: Remember me

Custom DetailView for cell
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Custom DetailView for cell

Custom DetailView for cell 1 year, 8 months ago #1

I would like to be able to create a custom ViewController to act as the DetailView for a cell/object. It looks like this is possible if the detail is in a UITableView but I can't figure out how to do this with a regular UIViewController.
  • jhalickman
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0

Re: Custom DetailView for cell 1 year, 8 months ago #2

Would you please elaborate on that? Are you asking how to use Sensible TableView with a UIViewController instead of a UITableViewController, or is it how to have an auto generated detail view as a UIViewController?
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Custom DetailView for cell 1 year, 8 months ago #3

In a Core Data based application, it might make sense to flatten he UI.
On an iPad, there is oft enough space to display the contained
entities directly as in a master-detail report.

An iPad version of the Core Data sample code might want to display
the TaskSteps directly in a section. A further question would be
where to have the add and edit buttons then.
  • Stephan
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 1

Re: Custom DetailView for cell 1 year, 8 months ago #4

Hi Stephan,

In Sensible TableView, all you need to flatten out the UI in sections instead of cells with detail views is simply create these sections. For the taskSteps example you mentioned, you would remove the taskSteps property from the Task class definition, then create an SCArrayOfObjectsSection bound to these taskSteps.

Also, for the case when you're having several of these sections that need add buttons, we are now studying to have the add button get automatically generated as an extra cell for each of these sections (will only appear in edit mode). We will try our best to have this part of our next release.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Custom DetailView for cell 1 year, 8 months ago #5

Having actionCells sounds like a good idea. It would allow NakedObjects style UIs, which are very good for exploring the domain model.
  • Stephan
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 1

Re: Custom DetailView for cell 1 year, 8 months ago #6

This sounds like a really interesting idea Stephan. Would you please elaborate on what you mean by "actionCells"?
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
  • Page:
  • 1
  • 2
Time to create page: 1.01 seconds