Networking with URLSession · Challenge: Running Code on the Main Thread | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/7476-networking-with-urlsession/lessons/4

The new website is totally buggy. I’m getting videos that stop part way through and broken navigation. The old site was way superior IMO.

If you are running into any issues, please head over to support@razeware.com. They should be able to help you out. Thanks!

Hi I did not get the stack error shown at the end of this video

@virancheeind Please let us know what stack error do you get exactly when you get a chance. Thank you!

The error is a result of trying to update the main thread from a background thread. If you didn’t get the error, then either you correctly updated the main thread, or you disabled that reporting. Feel free to post your code so we can review.

So the main “queue” is viewDidLoad? because this is. very confusing, could you give a more simplified example on this? So the main thread is “viewDidLoad”?

I watched this part like more than 20 times and I’m still confused

@george30 Do you still have issues with this?