Skip to Content
iPhone® Application Development All-In-One For Dummies®
book

iPhone® Application Development All-In-One For Dummies®

by Neal Goldstein, Tony Bove
February 2010
Beginner to intermediate
882 pages
19h 26m
English
For Dummies
Content preview from iPhone® Application Development All-In-One For Dummies®

Chapter 3. Working the URL Loading System

In This Chapter

  • Understanding the URL loading system

  • Downloading data asynchronously

  • Using delegation in displaying data

  • Displaying the sights (as annotations) on a map

In the grand scheme of things, downloading only a small bit of data from the Internet has no impact on your app's performance, but when that begins to increase, you're going to run into trouble. That's because right now when the downloading is taking place, everything else stops. You can imagine, then, how annoyed the users will be when you start downloading lots of images and text for the sights in the RoadTrip application. Users may even have to get themselves another iPhone to keep themselves amused while waiting for the data to finish downloading.

Again, this isn't an issue in small simple apps, but it's something you must address if you're creating industrial-strength applications. By this I mean not just business applications, but anything that delivers a significant amount of content to the user.

Interestingly enough, the solution to the problem, the URL loading system, involves the use of delegation as well, as do many of the other synchronous processes you have and will use (the XML parser you used in Book V, for example).

Finally, when you do get the sights loaded, you're going to want to display them on the map. This chapter goes into more detail about how to do that. I also extend the map discussion from the last book and show you how to create model objects that can ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

iPhone App Development: The Missing Manual

iPhone App Development: The Missing Manual

Craig Hockenberry
Objective-C

Objective-C

Jiva DeVoe
Beginning iPhone Development with Swift 3: Exploring the iOS SDK, Third Edition

Beginning iPhone Development with Swift 3: Exploring the iOS SDK, Third Edition

Molly Maskrey, Kim Topley, David Mark, Fredrik Olsson, Jeff Lamarche

Publisher Resources

ISBN: 9780470542934Purchase book