Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法结束(ios 7)多点连接?例如,不是完全断开本地对等点,而是只是禁用与特定对等点的连接?
唯一可以断开连接的对等点是您MCSession自己,因此您需要为连接到的每个对等点创建一个新会话。您可以将这些会话保存在字典中,并使用已连接对等点的displayName属性作为键,当您想要断开给定对等点的连接时,获取相关MCSession内容并向该会话发送一条disconnect消息。
MCSession
displayName
disconnect