Welcome, Guest
Username Password: Remember me

detailTableViewStyle Delegate Methods
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: detailTableViewStyle Delegate Methods

detailTableViewStyle Delegate Methods 1 year, 5 months ago #1

Hi All,

Tarek kindly provided me with some assistance and explained how I can set the .detailTableViewStyle property of a SCSelectionCell to show the detail view controller as a UITableViewStyleGrouped. However, how can I then get the cells which display within the detail table view to call their SCTableViewCellDelegate methods (e.g. - (void)willDisplayCell:(SCTableViewCell *)cell)?

When using a SCClassDefinition I can set the .uiElementDelegate property to set the cell delegate for the cells contained within that definition (section) but there doesn't seem to be a similar setting for the generated detail table view in the SCSelectionCell.

Thanks,
Matthew
  • skoota
  • OFFLINE
  • Expert Boarder
  • Posts: 89
  • Karma: 2

Re: detailTableViewStyle Delegate Methods 1 year, 4 months ago #2

Hi Matthew,

How are these cells being generated? If the detail cells have been automatically generated using their own class definition, then they will automatically have their delegate set to the uiElementDelegate of their class definition. If you have created these cells manually, then you should set their delegate yourself.

Also, you can loop through the cells of the detail model and assign their delegate in the tableViewModel:detailViewWillAppearForRowAtIndexPath:withDetailTableViewModel: method.

Hope this helps
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: detailTableViewStyle Delegate Methods 1 year, 4 months ago #3

Hi Tarek,

Thanks for your message. I'll re-check my code and let you know if there are any issues.

Best wishes,
Matthew
  • skoota
  • OFFLINE
  • Expert Boarder
  • Posts: 89
  • Karma: 2
  • Page:
  • 1
Time to create page: 0.73 seconds