iPhone: serialize and send objects over bluetooth?

后端 未结 1 477
执念已碎
执念已碎 2021-01-28 19:32

What is the best way to serialize an object and send it over a bluetooth (or network connection)?

相关标签:
1条回答
  • 2021-01-28 20:09

    you can use the gamekit APIs.

    sendDataToAllPeers:withDataMode:error: or

    sendData:toPeers:withDataMode:error:

    the data can be any format encapsulated in NSData.

    0 讨论(0)
提交回复
热议问题