GKTurnBasedMatch matchData的最大大小

时间:2013-01-04 12:23:45

标签: iphone objective-c ios game-center gamekit

我一直在寻找一个明确的答案,但我得到了一些不一致的答案。 Apple文档声明64k字节。但是,在线我发现多个来源说4k字节是最大值。这是iOS 5和iOS 6之间的区别吗?

4 个答案:

答案 0 :(得分:2)

它是4KB,现在是64KB。

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

答案 1 :(得分:0)

具有决定性,或者没有,但我认为之前的限制是4 kB,现在这个限制已提升到64k。但不是100%肯定。

答案 2 :(得分:0)

matchDataMaximumSize个实例中有一个名为GKTurnBasedMatch的只读属性,它将返回" [Returns the limit the Game Center servers place on the size of the match data. (read-only)][1]"

答案 3 :(得分:-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 ]