UA-17470720-3

Jump to content


Photo
- - - - -

Why does this action not fire?

cells actions models

  • Please log in to reply
2 replies to this topic

#1 David DelMonte

David DelMonte

    Forum Master

  • STV 4.0 Pro
  • PipPipPipPipPipPipPip
  • 527 posts
Reputation: 41
Excellent

Posted 17 February 2015 - 09:16 AM

Hi again.

 

Why does this action fire:

 

 

model.cellActions.willDisplay = ^(SCTableViewCell *cell, NSIndexPath *indexPath)
{
NSLog(@"here1");

};
 

 

 

 

 

but this one does not:

 

 

model.cellActions.detailModelWillPresent = ^(SCTableViewCell *cell, NSIndexPath *indexPath, SCTableViewModel *detailModel)
{
NSLog(@"here2");
};
 

 

 

Thanks!


Edited by David DelMonte, 17 February 2015 - 09:16 AM.


#2 Dave Guerin

Dave Guerin

    Forum Master

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 539 posts
  • LocationIreland
Reputation: 134
Popular

Posted 17 February 2015 - 11:13 AM

Hi David,

 

The documentation

 

http://sensiblecocoa...odelWillPresent

 

says:

 

"Note: This action is only applicable to cells that generate detail views, such as SCSelectionCell."

 

 

Are your cells supposed to generating a detail view? Are they displaying a detail view but the cellAction isn't firing?


  • Tarek likes this
Cheers,

Dave

www.dgapps.ie

#3 David DelMonte

David DelMonte

    Forum Master

  • STV 4.0 Pro
  • PipPipPipPipPipPipPip
  • 527 posts
Reputation: 41
Excellent

Posted 17 February 2015 - 12:12 PM

Thanks Dave, I guess, when all else fails, read the instructions. :)







Also tagged with one or more of these keywords: cells, actions, models

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users