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.
我想将 peerID 转换为 UDID,而不是 iphone 的名称,我该怎么做?
不确定您是否使用GKSession's peer id,如果是,请尝试 - (NSString *)displayNameForPeer:(NSString *)peerID?
GKSession
(NSString *)displayNameForPeer:(NSString *)peerID
你不能。peerID 仅在一个连接的 GKSession 期间识别设备。重新连接或启动新的 GKSession 后,同一设备将获得不同的 peerID。