Chapter 16. Accessing Built-in Applications

WHAT YOU WILL LEARN IN THIS CHAPTER

  • How to send emails from within your application

  • How to invoke Safari from within your application

  • How to invoke the Phone from within your application

  • How to send SMS messages from within your application

  • How to access the camera and Photo Library

  • How to access the Contacts application

  • How to add and remove contact information from the Contacts application

The iPhone comes with a number of built-in applications that make it one of the most popular mobile devices of all time. Some of these applications are Contacts, Mail, Phone, Safari, SMS, and Calendar. These applications perform most of the tasks you would expect of a mobile phone. As an iPhone developer, you can also programmatically invoke these applications from within your application using the various APIs provided by the iPhone SDK.

In this chapter, you learn how to invoke some of the built-in applications that come bundled with iPhone as well as how to interact with them from within your iPhone application.

SENDING EMAILS

Sending emails is one of the many tasks performed by iPhone users. Sending emails on the iPhone is accomplished using the built-in Mail application, which is a rich HTML mail client that supports POP3, IMAP, Exchange email systems, and most web-based emails such as Yahoo! and Gmail.

There are times where you need to send an email in your iPhone application. A good example is embedding a feedback button in your application that users can ...

Get Beginning iPhone® SDK Programming with Objective-C® 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.