游戏中心玩家显示名称始终为“我"在沙盒中 [英] Game Center Player Display Name Always "me" in the sandbox

查看:50
本文介绍了游戏中心玩家显示名称始终为“我"在沙盒中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用用户的Game Center显示名称和玩家ID,以维护其在我的服务器上的个人资料.当我对此进行测试时,一切似乎都可以正常执行,但是我的沙箱帐户的用户显示名称显示为我",而不是我的帐户"Billybobbo"所附的显示名称.

I am using the user's Game Center display name and player ID in order to maintain their profile on my server. When I went to test this, everything appears to execute properly, but the user's display name for my sandbox account shows up as "Me," rather than my display name attached to my account, "Billybobbo."

这应该在沙盒模式下发生吗?

Is this supposed to happen in sandbox mode?

控制台:

2013-08-31 18:51:37.054 [App Name][53230:907] Player ID: G:1682017882
2013-08-31 18:51:37.065 [App Name][53230:907] Player Display Name: Me

推荐答案

对于可能想要做与我正在做的事情类似的任何事情的人,Apple并未明确说明这些属性.在这种情况下,我想要访问的属性不是用户的displayName,而是用户的alias.

For anyone who may want to do something similar to what I am doing, Apple hasn't made these properties very clear. The property that I wanted to access in this case was not the user's displayName, but actually the user's alias.

这篇关于游戏中心玩家显示名称始终为“我"在沙盒中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆