hi,
i have two different classes. One is Socket.m and h of type NSObject inside this class i have a method(creatSocket) which creates a socket. I want to call this method(creatSocket) inside SomeViewController.m class.
How do i do that?
i tryd with selector
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[Socket createSocket]: unrecognized selector sent to class 0xa250'
i have two different classes. One is Socket.m and h of type NSObject inside this class i have a method(creatSocket) which creates a socket. I want to call this method(creatSocket) inside SomeViewController.m class.
How do i do that?
i tryd with selector
, but that did not workt for me. I get:[[Socket class] performSelectorselector(createSocket)];
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[Socket createSocket]: unrecognized selector sent to class 0xa250'
Last edited: