I’ve created a protocol to manage data source updates.
but invoking methods of the object which implements the protocol won’t work…
I’ve checked if the objects conforms to the protocol with: conformsToProtocol
and the result is no although in the header of the object’s class i’ve declared the protocol:
@interface MyClass : NSObject <DataSourceProtocol>
{
...
and implemented the methods…
What could be the problem?
Thanks!
Sounds like you forget to point the
DataSourceProtocolto the viewController.Something like this in viewController:
_tableView.dataSource = self;I can’t comment the question, so I make above as an answer.