ios - Async HTTP response is holding some seconds after finish the request -
the snippet of code below ran issues while ago, run on successful async http response. after response received user still waiting few seconds (or longer) before segue performed.
someservice.doaction(input, callback: { self.performseguewithidentifier("some-id", sender:self) })
why segue not performed after http response successful?
try call code on main tread:
someservice.doaction(input, callback: { dispatch_async(dispatch_get_main_queue(), { self.performseguewithidentifier("some-id", sender:self) }) })
Comments
Post a Comment