2013-01-04 114 views
3

我一直在寻找一个明确的答案,但我得到了一些不一致的答案。 Apple文档状态64k字节。然而,在线我发现多个来源说4k字节是最大的。这是iOS 5和iOS 6的区别吗?GKTurnBasedMatch匹配的最大尺寸数据

回答

2

它是4KB,现在是64KB。

来源: https://developer.apple.com/news/index.php?id=02012012a

+0

从源头:“我们最近我们将基于回合的比赛的数据量从4 kb增加到了64 kb,所以......“。这可能是一个错字,但这似乎是说,限制是64千比特,而不是字节。有关这一点的任何澄清? –

-1
According to documentation following is data size limit 
1. Limit the size of unreliable messages to 1000 bytes or smaller in size. 
2. Limit the size of reliable messages to 87 kilobytes or smaller in size. 

[ http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/Matchmaking/Matchmaking.html ] 
+0

这个答案并不适用于回合制比赛 – Phlibbo

0

是否有影响力,或者没有,但我认为以前的限制是4kB,现在这个限制已经提高到了64k。虽然不是100%肯定的。

0

有被称为只读属性:在GKTurnBasedMatch实例matchDataMaximumSize,将返回“[Returns the limit the Game Center servers place on the size of the match data. (read-only)][1]