O'Reilly logo

Xcode 4 Cookbook by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing e-mail messaging

In this recipe we will learn about the MFMailComposeViewController class, and how we can use this to incorporate e-mail messaging within our application.

Getting ready

Following on from our previous recipe, we will look at how to implement the sendEmail method to compose an e-mail with the selected book details whenever a transfer has taken place.

How to do it...

To begin, follow these simple steps as outlined in the following order:

  1. Open the BooksViewController.h interface file from the Project Navigator window.
  2. Next, modify the interface file and add the following highlighted code sections.
    // BooksViewController.h // BooksLibrary // Created by Steven F Daniel on 03/12/12. // Copyright (c) 2012 GenieSoft Studios. All ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required