Introduction to iOS Threading – Zelda App (Xcode 8, Swift 3)

Video is ready, Click Here to View ×

Learn how to put code or tasks on a background thread to speed up your iOS app and make it more responsive to your users. Multithreading keeps iOS apps responsive for a better user experience. We start with this Zelda Characters app and solve the problem of the main UI thread being locked up by a long data retrieval process. We use two concurrent threads running different tasks to help solve this problem.

The Playlist:



Code Blog:

xcode tutorials swift


29 thoughts on “Introduction to iOS Threading – Zelda App (Xcode 8, Swift 3)”

  1. So I guess this would allow me to constantly update information in an array, for example, in the background? By that I mean I could have an array holding data, and it have say an integer value that is constantly changing, but can update something on the UI without affecting usage of the application?

  2. Love your stuff. I keep coming back to your page to get new tips and ideas for programming, as well as design ideas. You have a good eye for UI. Quick question: how do you delete an entire line with one keystroke? You do this a lot, and I can't figure out how you do it. I know about CTRL-K, but that can take two or three keystrokes. How do you delete an entire line of code with just one keystroke? Thanks!

  3. just been studying on Threading, maybe the reason why It works and sometimes it doesnt is because the global queue is concurrent so it is probabilistic and we cannot guarantee which once will finish first (getting data or reloading data). So when you put reload on main, main is serial so one task must finish before the other. but is it weird and cool how the computer does this

  4. Question 1: if asynchronous doesn't wait for the code to complete to continue then synchronous will wait. If this is true why would you put it on another thread in the first place? Surely leaving it on the main thread would do the same thing if the program has to wait for it to complete on either thread.

    2. How do you do that thing where you delete the whole line without highlighting?

    Great vids!

  5. Very useful Mark. I will try and put this to use using Google Places SDK where I need to get a place's image in a separate request to the original. This is causing me sole headaches when trying to build out a table view with cells filled with place data. Any tips? Using the API will require the same approach.

  6. these are best descriptive tutorial i have watched, i can understand them and apply to my little project, thanks for your great tutorials. regarding this course, while waiting that 3 second, can you teach us how to do the progress bar? so the users know that the tableview is loading now. it is a cool thing i always i want to learn. thanks

  7. your videos always have some information which I probably have not come across in any other tutorials and every single step is said and done with so much clarity that I love. will keep watching all your content. thanks for making them.

Leave a Reply

Your email address will not be published. Required fields are marked *