Dany Y
Dany Y

Reputation: 7041

how do i tell my uitableviewcontroller to reloadData in a asynch socket

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

Answers (1)

Ole Begemann
Ole Begemann

Reputation: 135588

I would consider having your socket class send a NSNotification which the table view controller listens to.

Upvotes: 3

Related Questions