Welcome, Guest
Username Password: Remember me

TOPIC: Custom detail view

Custom detail view 1 year, 6 months ago #1

Hi,

I have based my app on the iPad sample app which is working great. Thanks! Since I need to create some custom cells (which wont be available until the next version) I want to be able to launch my own custom detail view from within the DetailViewController when one of my Sensible table cells is selected. That new class will handle any CoreData updates etc. What is the best way to launch this new DetailViewController2 from within the DetailViewController ??

Do I place Sensible delegates in my existing DetailViewController and then call the customDetailTableViewModelForRowAtIndexPath again ?? I'm a bit lost. Any help will be appreciated.
  • monsta
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 2

Re: Custom detail view 1 year, 6 months ago #2

Hi Phil,

Just a clarification: in your iPad sample based application, do you want to load your custom detail view for a cell that exists in the RootViewController, or is it for a cell that exists in the DetailViewController?
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Custom detail view 1 year, 6 months ago #3

Hi,

It's for a cell in the DetailViewController
  • monsta
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 2

Re: Custom detail view 1 year, 6 months ago #4

This should be very straight forward if you use our SCViewController or SCTableViewController classes. For a detailed example on doing this, please check out our implementation of SCDateCell's didSelectCell method (please ignore the part where it says "Check for custom detail view controller").

Please tell me if you're still having any questions regarding this.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Custom detail view 1 year, 6 months ago #5

Hi,

I had a look at SCDateCell. I'm a bit confused though. Are you saying I should implement a class similiar to that ??

Is it setup via the detailViewWillAppearForCell method ?

I just need something to allow me to call my own view controller when a Cell is selected if possible ?

I'm sure its possible via the Sensible framework, I'm must be just missing something
  • monsta
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 2

Re: Custom detail view 1 year, 6 months ago #6

I can give you a full code sample if you can give me a more exact idea about what the cell is and what exactly is the detail view controller composed of. This should make it a lot easier for you
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
Time to create page: 1.64 seconds