First, we will create an MCSession object to create a session. The
init takes three parameters:
peerIDof the current device.
Next, we will add a button for the Advertiser and the Browser.
If the device is an Advertiser, then the
AdvertiseSelf function will be called. This will start the
MCAdvertiserAssistant to get ready to connect to other devices.
If the device is a Browser, then the user will click the browse button to look for ...