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 ...

Get Xcode 4 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.