Hi
I've created a custom SCControlCell for picking photos. I know I could have used the built-in one for that, but my customer had a very specific look they wanted to achieve for this feature. So I created a custom cell for it and am using SCCustomPropertyDefinition to make it work.
I've implemented commitChanges and loadBoundValueIntoControl to setup and save the selected image. My boundValue is set to the image selected.
Now, in my view controller, I've implemented the valueChangedForRowAtIndexPath method. But when I put in a breakpoint, my boundValue is always nil. When I call self.boundValue = self.selectedPhoto, boundValue is nil immediately after the call. However, this is due to the fact that boundPropertyName is nil. I don't know why that's the case just yet.
This is how I'm configuring my custom cell:
NSDictionary *photoBindings = [NSDictionary
dictionaryWithObjects:[NSArray arrayWithObjects:@"photo", nil]
forKeys:[NSArray arrayWithObjects:@"1", nil]]; // 1,2,3,4 are the control tags
dataProperty = [SCCustomPropertyDefinition definitionWithName:@"photo"
withuiElementNibName:@"PhotoSelectionCell"
withObjectBindings:photoBindings];
[classDef insertPropertyDefinition:dataProperty atIndex:8];
Thanks,
Brendan