Welcome, Guest
Username Password: Remember me

valueChangedForRowAtIndexPath not called in VC
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: valueChangedForRowAtIndexPath not called in VC

valueChangedForRowAtIndexPath not called in VC 1 year, 2 months ago #1

I have found several threads with references to the function:


- (void)tableViewModel:(SCTableViewModel *)tableViewModel
valueChangedForRowAtIndexPath:(NSIndexPath *)indexPath


I have added the function to my view controller and made sure that the controller conforms to the <SCTableViewModelDelegate>
...

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "SCTableViewModel.h"

@class DetailViewController;

@interface RootViewController : UITableViewController <SCTableViewModelDataSource, SCTableViewModelDelegate>
{
.....

Any ideas? I have even tried this in the iPad sample app unsuccessfully as well.

Re: valueChangedForRowAtIndexPath not called in VC 1 year, 2 months ago #2

Hi Bill,

I am assuming that the cells you want to monitor the valueChanged of are in an automatically generated detail view. The problem you have is that you haven't set the "delegate" property of the detail model, and thus the detail model does not call valueChangedForRowAtIndexPath. For an example of how to set the delegate of detail models, please check the following post: www.sensiblecocoa.com/forum/sensible-tab...n-to-cells.html#2172

Please tell me if you need any further help.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2404
  • Karma: 72
  • Page:
  • 1
Time to create page: 0.79 seconds