简体   繁体   English

如何在不使用服务器的情况下将文件从一部 iphone 传输到另一部 iphone/ipad 设备

[英]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.

相关问题 iPhone:如何安全地将数据从设备传输到服务器 - iPhone: How do I securely transfer data from device to server iPhone / iPad:向/从设备传输文件? - iPhone/iPad: Transfer Files To/From Device? 如何将NSdata从一个iPhone转移到另一个 - How to transfer NSdata from one iphone to another 如何将数据库从一台iPhone设备转移到另一台iPhone设备并连接到新数据库? - How to transfer database from one iPhone device to another and connect to new database? iPhone:将部分记录从一个文件传输到另一个文件 - iPhone : Transfer part of records from one file to another file 我可以将视频从iPhone或iPad流式传输到服务器吗? - Can I stream a video FROM my iPhone or iPad TO a server? 如何在iPhone中将一个类别的值赋予另一个类别? - How can i give the values from one class to another in iphone? 如何在iPhone中从另一个应用程序运行一个应用程序? - How can I run one app from another app in iphone? 如何在不使用越狱的情况下使iPhone应用程序与iPad兼容? - How can i make my iPhone Application to iPad Compatible without using Jailbreak? 使用NSNetServices将短信从一台iPhone设备发送到另一台iPhone设备 - Sending text message from one iPhone device to another using NSNetServices
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM