GameKit wifi connection?

前端 未结 2 1549
说谎
说谎 2020-12-31 15:08

I\'ve read that as of iPhone OS 3.1, GameKit supports wifi connections. But the documentation states:

\"If your application configures the peer pic

2条回答
  •  执笔经年
    2020-12-31 15:53

    Your GKSession object will automatically handle the discovery of peers over WiFi or Bluetooth, and find those that are available on either protocol.

    The documentation is stating that unlike Bluetooth, for which GKPeerPickerController provides a UI to enable Bluetooth if it's not already enabled, GKPeerPickerController does not provide a UI to enable wifi, or select the network the user wishes to be on, you will have to provide your own.

提交回复
热议问题