In my application I've a UITableViewController
and according to user selections instantiate a new UIViewController
and sends a request for server via tcp socket.
Before the response arrives from server it already runs "viewDidLoad
" method of the UIViewController
.
and in most cases responses hasn't arrived yet.
My questions is: How can I stop the viewDidLoad
from running until I receive the response and process the data in the viewDidLoad
method???
and also if possible to make this whole process asynchronous in the way that it doesn't stuck the whole application till response arrives.
Thanks!