<!--
{
  "availability" : [
    "iOS: 3.0.0 - 7.0.0",
    "iPadOS: 3.0.0 - 7.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKPeerPickerControllerDelegate/peerPickerController(_:didSelect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKPeerPickerControllerDelegate(im)peerPickerController:didSelectConnectionType:"
  },
  "title" : "peerPickerController(_:didSelect:)"
}
-->

# peerPickerController(_:didSelect:)

Tells the delegate that the user selected a connection type.

```
optional func peerPickerController(_ picker: GKPeerPickerController, didSelect type: GKPeerPickerConnectionType)
```

## Parameters

`picker`

The controller for the peer picker dialog.

`type`

The type of network connection chosen by the user.

## Discussion

If the peer picker is configured to allow users to choose between multiple connection types, this method is called when users select the connection type they want to use. Your delegate implements this method if you want to override the behavior for a particular connection type.

> Important:
> In iOS 3.0, the peer picker can configure Bluetooth connections (``doc://com.apple.gamekit/documentation/GameKit/GKPeerPickerConnectionType/nearby``). If the user chooses an Internet connection (``doc://com.apple.gamekit/documentation/GameKit/GKPeerPickerConnectionType/online``), your delegate should dismiss the dialog and present its own user interface to configure the Internet connection:

```objc
- (void)peerPickerController:(GKPeerPickerController *)picker didSelectConnectionType:(GKPeerPickerConnectionType)type {
    if(type == GKPeerPickerConnectionTypeOnline) {
        [picker dismiss];
        [picker autorelease];
// Display your own user interface here.
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)