I\'m trying to make a network call run in a background thread so it doesn\'t freeze my app while it\'s waiting.
The call happens when I do:
nextTime = [m
Your "outside" NSLog statement should actually go in that inner dispatch_async block that is set to run on the main thread, because that block will execute after you've set the value of nextTime. Any code you place below your asynchronous block call will likely execute way before the code inside the block.