Welcome, Guest
Username Password: Remember me

Adding Prompt to SCDateCell DetailView NavBar
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Adding Prompt to SCDateCell DetailView NavBar

Adding Prompt to SCDateCell DetailView NavBar 1 year, 4 months ago #1

I am using the following code to add a prompt to detailview navbars - but this doesn't appear to work for SCDateCells. Is there something I am doing wrong? Thanks!
-(void)tableViewModel:(SCTableViewModel *) tableViewModel detailViewWillAppearForRowAtIndexPath:(NSIndexPath *) indexPath withDetailTableViewModel:(SCTableViewModel *) detailTableViewModel {
 
detailTableViewModel.viewController.navigationItem.prompt = @"Editing...";
 
}
 
  • kes815
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Karma: 0
Last Edit: 1 year, 4 months ago by kes815.

Re: Adding Prompt to SCDateCell DetailView NavBar 1 year, 4 months ago #2

Hi Karl,

Thank you so much for reporting this.

The problem is that in STV's internal architecture, an SCDateCell does not have a detail table view model, and thus the variable "detailTableViewModel" actually contains "nil". We will modify this architectural decision in our new 2.0 release (due in about 1 week from now) to allow you to customize SCDateCell's view controller, just as you did in your code sample.

Thanks again!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
  • Page:
  • 1
Time to create page: 0.68 seconds