Reputation: 7041
I'm using cocoaAsyncSocket when i click on a button in my tableViewController to fetch the dat I want in the function didReadData to call reloadData of my tableView. how should get the reference of my tableView ? please tell me, if i should use appDelegate, singletons or simply send it as a parameter. or if my design all together is wrong. Thanks
Upvotes: 0
Views: 111
Reputation: 135588
I would consider having your socket class send a NSNotification
which the table view controller listens to.
Upvotes: 3