Transferring data to another device using bluetooth

In this recipe we will l earn how to use the GameKit framework APIs that allow for communication over a Bluetooth network.

Getting ready

Following on from our previous recipe, we will look at how we can implement these features into our application, to handle transfer our book details from one iOS device to another.

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

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.