Ios 游戏中心显示名称错误?

Ios 游戏中心显示名称错误?,ios,objective-c,game-center,Ios,Objective C,Game Center,这就是我在Xcode中得到的。这是没有意义的,因为它是文档化的,并显示在代码完成中。这是唯一一个给我带来麻烦的球员 我尝试将displayName更改为消息[player displayName]。编译时会发出警告并在运行时崩溃。无需担心。找到了iOS特定的文档。displayName属性仅在iOS6+(bummer)上可用。但仍然不确定为什么会出现编译时错误 error: property 'displayName' not found on object of type 'GKPlayer

这就是我在Xcode中得到的。这是没有意义的,因为它是文档化的,并显示在代码完成中。这是唯一一个给我带来麻烦的球员


我尝试将displayName更改为消息[player displayName]。编译时会发出警告并在运行时崩溃。

无需担心。找到了iOS特定的文档。displayName属性仅在iOS6+(bummer)上可用。但仍然不确定为什么会出现编译时错误

error: property 'displayName' not found on object of type 'GKPlayer *'