November 2013
Intermediate to advanced
576 pages
19h 3m
English
Apple provides a built-in interface for finding other devices to connect to called the Peer Picker (Figure 10.2). The Peer Picker makes it extremely easy for your users to find peers and automates most of the functionality of connecting so that you don’t need to get your hands dirty.
Figure 10.2 The Peer Picker searching for available devices.
In the sample app, when it is launched, there is a single button in the center of the screen titled Connect to New Peer. This action will trigger the Peer Picker using the connect: method.
The connect: method starts off by allocating and initializing a new instance of GKPeerPickerController ...
Read now
Unlock full access