3

Understanding Views, Outlets, and Actions

WHAT YOU WILL LEARN IN THIS CHAPTER

  • How to declare and define outlets
  • How to declare and define actions
  • Connecting outlets and actions to the views in your View window
  • How to use the UIAlertView to display an alert view to the user
  • How to use the UIActionSheet to display some options to the user
  • Using the UIPageControl to control paging
  • How to use the UIImageView to display images
  • How to use the UIWebView to display web content in your application
  • Dynamically adding views to your application during runtime

In the previous chapter, you built a simple Hello World! iPhone application without understanding much about the underlying details of how things work together. In fact, one of the greatest hurdles in gaining proficiency with iOS programming is the large number of details you need to learn before you can get an application up and running. Hence, this chapter starts with the basics of creating the user interface (UI) of an iPhone application, and describes how your code connects with the various graphical widgets.

Get Beginning iOS 5 Application 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.