有没有人知道MCF框架,不使用MCBrowserViewController(将通过MCNearbyServiceAdvertiserDelegate和MCNearbyServiceBrowserDelegate方法处理),是否允许或不允许最大数量的对等体? (至少没有公共财产来设置它)
(对于MCBrowserViewController,默认/最大值为8,详情可在此处找到:https://developer.apple.com/library/ios/DOCUMENTATION/MultipeerConnectivity/Reference/MCBrowserViewController_class/MCBrowserViewController_class.pdf)
答案 0 :(得分:3)
第二次查看MCSession
标题并确实看到限制被定义为常量(min = 2和max = 8)。
// Minimum number of peers in a session
MC_EXTERN NSUInteger const kMCSessionMinimumNumberOfPeers NS_AVAILABLE_IOS(7_0);
// Maximum number of peers in a
MC_EXTERN NSUInteger const kMCSessionMaximumNumberOfPeers NS_AVAILABLE_IOS(7_0);