0

Currently I have UITableView and simple UIView in my iPad application. Each of them needs to get data from remote Web-service simultaneously. In each ViewController I create NSURLConnection and run a request to web service, but it seems that second one never return nothing at all.

Is it possible to run two separate requests in parallel?

What I found so far is an advice to use [[NSRunLoop currentRunLoop] run]; though I am not sure how to use it in this context :/

Thanks in advance!

WASD42
  • 2,352
  • 6
  • 27
  • 41
  • Yes, it is. In one of my apps I do concurrent downloads using NSURLConnections without problem. – onnoweb Jul 19 '11 at 20:39
  • @onnoweb: the question of "whether is it possible" implies "if so, how?" :) – WASD42 Jul 19 '11 at 21:19
  • 1
    @WASD42 you should expand your question to include what you have tried so far. Did you try +connectionWithRequest:delegate: ? – hooleyhoop Jul 19 '11 at 21:57

1 Answers1

0

Fuuuuu!

My bad, I forgot to instantiate the response NSMutableData variable. AGAIN! :)

Thanks everyone for your attention!

WASD42
  • 2,352
  • 6
  • 27
  • 41