问题
I've been searching for a definitive answer on this, but I get some inconsistent answers. Apple docs state 64k bytes. However, online I find multiple sources that say 4k bytes is the max. Is this a difference between iOS 5 and iOS 6?
回答1:
It was 4KB, now its 64KB.
Source: https://developer.apple.com/news/index.php?id=02012012a
回答2:
Definative, or not, but I think that the previous limit was 4 kB, and that that limit now has been raised to 64k. Not 100% sure, though.
回答3:
There is a read only property called: matchDataMaximumSize
of the GKTurnBasedMatch
instance that will return "[Returns the limit the Game Center servers place on the size of the match data. (read-only)][1]
"
回答4:
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 ]
来源:https://stackoverflow.com/questions/14157171/maximum-size-of-gkturnbasedmatch-matchdata