I need to transmit an integer through GameKit using sendDataToAllPeers:withDataMode:error: but I don\'t know how to convert my NSNumber to NSData in order to se
sendDataToAllPeers:withDataMode:error:
For a more detailed example how to send different payloads you can check the GKRocket example included in the XCode documentation.