m_NetworkController is my network class and SelDataRecivedError is member of type SEL now if i am trying to initialize this selector member from other class like this:
m_NetworkController.SelDataRecivedError = NSSelec开发者_Python百科torFromString(@"DataRecivedErrorFromServer");
i am getting the error
-[NCcontroller setSelDataRecivedError:]:
unrecognized selector sent to instance 0x3e010c0
what i am missing here? i have property and @synthesize for the SelDataRecivedError
Don't you try to retain selector?
property should look like this:
@property (assign) SEL SelDataRecivedError;
got it. sorry the problem was with @synthesize
精彩评论