[英]how can i transfer a file from one iphone to another iphone/ipad device without using a server
Can anybody suggest me a method of how to send/share a file from one iphone/ipad device to another.任何人都可以建议我一种如何将文件从一个 iphone/ipad 设备发送/共享到另一个设备的方法。 Is it possible to achieve it using Bonjour.是否可以使用 Bonjour 来实现它。
Thanks in advance.提前致谢。
You can use the GameKit API to send data between peers over a Bluetooth connection.您可以使用 GameKit API 通过蓝牙连接在对等方之间发送数据。 GKSession has the following method: GKSession 有以下方法:
- (void) mySendDataToPeers: (NSData *) data
{
[session sendDataToAllPeers: data withDataMode: GKSendDataReliable error: nil];
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.