objective c - iOS objects return nil soon after creation -


so i'm writing obj-c ios, , "strange" happening..

i have mvc, uitableview (private):

@interface mvc ()  @property (strong, nonatomic) iboutlet uitableview *tableview; @property (strong, nonatomic) cellvc *cell1; @property (strong, nonatomic) cellvc *cell2;  @end 

i load table view few custom cells. custom cell class uiviewcontroller... instantiate few, , set cell.contentview corresponding cellvc.view inside tableview:cellforrowatindexpath: method. custom cell class:

@interface cellvc : uiviewcontroller  @property (strong, nonatomic) iboutlet uiknob *knob1; @property (strong, nonatomic) iboutlet uiknob *knob2; @property (strong, nonatomic) iboutlet uiknob *knob3; @property (strong, nonatomic) iboutlet uiknob *knob4;  @end 

in case you're wondering, i've written subclass of uicontrol named uiknob...

in cellvc's viewdidappear: method, i've set breakpoint check values of every knob. each knob non-nil, happy... have been created.

my goal set mvc delegate of each knob. (4 knobs each cell) if set breakpoint anywhere in mvc, value of each knob nil??...

cell1.knob1.delegate = self; 

will not work because knobs exist inside cellvc.m ...

any ideas??


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -