Chapter 6

The Peer Picker

In the last chapter, we explored how to find matches using Game Center. In this chapter, we will look at the other provided system for finding peers to connect to. This system is called the Peer Picker and can be used to create a connection between two iOS devices using either Bluetooth or a local Wi-Fi network.

Before we begin working with the actual code, we let's take a quick look at the history surrounding Game Kit and Game Center. When Apple released iOS 3.0, at the time called iPhone OS 3.0, it implemented a new set of API calls, collectively referred to as Game Kit. Game Kit, in the 3.0 days, handled Bluetooth, LAN networking, and voice chat services. When Game Center was added in iOS 4.0/4.1, it brought with ...

Get Beginning iOS Game Center and Game Kit: For iPhone, iPad, and iPod touch 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.