UA-17470720-3

Jump to content


Photo
- - - - -

detailModelShouldDismiss Cancel/Done


  • Please log in to reply
1 reply to this topic

#1 RaduGrama

RaduGrama

    Jr. Member

  • STV 5.0 Pro
  • PipPip
  • 29 posts
  • LocationTampa, FL
Reputation: 6
Good

Posted 24 March 2016 - 09:29 PM

How can you determine in detailModelShouldDismiss is Cancel or Done has been pressed?

 

 

self.tableViewModel.sectionActions.detailModelShouldDismiss = {
    (section, detailModel, indexPath) -> Bool in

    if (detailModel.viewController as! SCTableViewController).doneButtonTapped {
...

 

doneButtonTapped or cancelButtonTapped above always return false. This code is running against Core Data.

 

Thank you,

Radu


  • Tarek, Dave Guerin and wizgod like this

#2 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 24 March 2016 - 10:10 PM

Thank you very much for reporting this Radu. I just checked and there seems to be a minor glitch in the calling order. I can send you a patch within the next 24hrs that will fix this.

 

Thanks again!






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users