Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: iPad and Detail Views

iPad and Detail Views 1 year, 7 months ago #1

Hi,

I'm wanting to port my iPhone app to support an iPad SplitView which will have its own DetailViewController (a UIViewController) which will have its own TableView. From the Master View I want to select a Table Row which will have its details populated in the DetailViewController. So rather than pushing a new controller I'd like those details to appear in the detailView. How would this be achieved with the Sensible framework ? Would the tableView in the detail view be a SCTableViewModel ?? Would it be something like this :

SCObjectSection *objSection = [SCObjectSection sectionWithHeaderTitle:nil withBoundObject:managedObject withClassDefinition:inspectionDef];
[detailViewController.tableViewModel addSection:objSection];

but how would the detailViewController.tableViewModel be initialised ?

Many thanks for all your help. Phil.
  • monsta
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 2

Re: iPad and Detail Views 1 year, 7 months ago #2

Hi Phil,

We're now implementing two delegate methods that will help you do exactly what you're after. The two methods are called:

- (UIViewController *)tableViewModel:customDetailViewForRowAtIndexPath:
and
- (UITableView *)tableViewModel:customDetailTableViewForRowAtIndexPath:

Implementing these two methods will have STV render the cells' details in your custom view controller instead of pushing its own vc. We're working really hard to have this included in our upcoming release (due in just a few days).
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: iPad and Detail Views 1 year, 7 months ago #3

Awesome thanks for the update, I'll hold off doing the custom code I was going to do. Will look forward to trying it out soon.
  • monsta
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 2

Re: iPad and Detail Views 1 year, 7 months ago #4

Hi again Phil,

This is now part of our new 1.6 release. Please check the bundled iPad sample application.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
  • Page:
  • 1
Time to create page: 1.58 seconds