How to make sequence first garb web data and second execute function in swift

49 Views Asked by At

I have a function to download web content. When I call it and call another function after, XCode execute second one first. Even though I put web function in this method

dispatch_async(dispatch_get_main_queue()){
      getWeather() 
}
println(notValed)
0

There are 0 best solutions below