Chapter     4

Coming Events

Now that you’ve seen an iOS app in action, you might be wondering what keeps your app “alive,” so to speak. In the Shorty app, you created action methods that were called when the user tapped on a button or the Go key on the keyboard. You created delegate objects that received messages when certain milestones were reached, like when a web page had problems loading or the URL shortening service responded. You never wrote any code to see if the user had touched something or checked to see if the web page had finished loading. In other words, you didn’t go out and get this information; your app waited for this information to come to it.

iOS apps are event-driven applications. An event-driven application doesn’t (and ...

Get Learn iOS 7 App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.