Join Simon Allardice for an in-depth discussion in this video Adding concurrency to an existing app with GCD, part of iOS App Development Essential Training.
…In this example, I'm going to use grand central…dispatch together with blocks to take an application that has…major UI responsiveness issues and fix them by running…some tasks concurrently with just a few lines of code.…So right now, I have this simlpe application.…It's got a date picker on there.…It's got a segmented control.…There's a button here that says Long-Running Operation.…And if I touch the button, the UI's going to…totally lock up for a few moments while it goes and…does something in the background, before it…finally comes back and updates the screen.…
Just doing that again, I'm going to start spinning a…couple of these wheels, hit the button, they immediately lock,…I cannot even click the segmented control, until this comes…back from doing whatever it was doing a moment ago.…This might be fetching some data, internally creating some complex…objects, performing a long calculation, whatever that needs to do.…So, this is not good behavior. Your users aren't going to like it.…It doesn't feel professional.…
Author
Released
12/19/2013- Using Xcode and the iOS Simulator
- Learning Objective-C basics and structure
- Creating objects, variables, properties, and custom classes
- Connecting UI elements to code
- Using delegation
- Using the Xcode debugger
- Creating and customizing table views
- Exploring storyboards
- Introducing blocks
- Saving and loading data
- Understanding the differences in iPad development
- Creating iPad apps with popovers and split views
- Adding application icons and launch images
Skill Level Beginner
Duration
Views
Related Courses
-
iOS 7 App Development New Features
with Simon Allardice2h 14m Intermediate
-
Introduction
-
Welcome59s
-
What you should know3m 59s
-
-
1. Getting Started
-
Creating a simple iOS app9m 30s
-
2. Using the Tools
-
Introduction to Xcode 58m 39s
-
Using the iOS Simulator4m 7s
-
-
3. Objective-C Refresher
-
Objective-C basics2m 36s
-
Objective-C structure4m 3s
-
Creating primitive variables1m 56s
-
Using pointers2m 14s
-
Messages and methods6m 37s
-
Object creation3m 34s
-
Using existing classes7m 41s
-
Creating custom classes8m 1s
-
Adding properties6m 21s
-
-
4. Core iOS Project Skills
-
Creating basic interaction12m 2s
-
Dismissing the keyboard5m 26s
-
Understanding delegation4m 58s
-
Alerting the user5m 6s
-
5. Diagnosing Issues
-
Using the Xcode Debugger6m 22s
-
6. iOS View Controllers
-
Creating iOS UI7m 21s
-
Using a date picker control5m 35s
-
Loading data into controls10m 7s
-
Responding to selection5m 38s
-
-
7. Using Table Views
-
Reusing table view cells4m 56s
-
Customizing table views6m 10s
-
8. Apps with Multiple View Controllers
-
Deconstructing a utility app6m 31s
-
Using navigation controllers2m 54s
-
9. Using Storyboards
-
Exploring storyboards3m 15s
-
-
10. Blocks and Concurrency
-
11. iPad Development
-
iPad-specific UI elements2m 44s
-
12. Finishing Touches
-
Adding launch images6m 39s
-
Adding iOS app icons4m 23s
-
Next steps2m 58s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Adding concurrency to an existing app with GCD