热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

“无挑战”消息游戏中心iOS8-“NoChallenges”messageGameCenteriOS8

IvebeenactuallysearchinginalotofsiteshowtosetagamecenterleaderboardinObjective-Ca

I've been actually searching in a lot of sites how to set a game center leaderboard in Objective-C and finally I got the code but it gave me this message when I open Game Center in my app:

我在很多网站上搜索如何在Objective-C中设置游戏中心排行榜最后我得到了代码但当我在app中打开游戏中心时,它给了我这样的信息:

http://imgur.com/xxvz7P2

http://imgur.com/xxvz7P2

I set all the itunes connect stuff and the leaderboard ID is correct so I decided to open a new Xcode project and write just the game center code in Swift and it worked, the leaderboard appeared and work perfectly.

我设置了所有的itunes connect功能,并且排行榜ID是正确的,所以我决定打开一个新的Xcode项目,用Swift编写游戏中心代码,它成功了,排行榜出现了,并且运行得很好。

I don't know if it's a problem because of Objective-c or what please can anyone help me what it can be so I don't have to write all the app code from Objective-C to Swift?

我不知道这是不是因为Objective-c的问题,或者有谁能告诉我它是什么,这样我就不用把所有的应用代码从Objective-c写到Swift了?

1 个解决方案

#1


1  

I had this problem today, and in searching for a solution, I found your question posted 18 hours ago. My code worked perfectly as of 2 days ago, but when I viewed a leaderboard or achievements page today (any leaderboard with any app, including live games) I saw the "No Challenges" message. I had "Sandbox mode" enabled in the Settings app.

我今天遇到了这个问题,在寻找解决办法的过程中,我在18小时前发现了你的问题。我的代码在两天前运行得很好,但当我今天看到一个排行榜或成就页面(任何应用的排行榜,包括实时游戏)时,我看到了“没有挑战”的信息。我在设置应用中启用了“沙箱模式”。

I signed out of Game Center, turned off Sandbox mode, logged back in, and viewed some leaderboards for live games, and they worked properly. I turned Sandbox mode back on and tested my app again, and this time it worked.

我退出了游戏中心,关闭了沙箱模式,重新登录,查看了一些实时游戏的排行榜,它们运行得很好。我打开沙箱模式,再次测试我的应用,这次成功了。


推荐阅读
author-avatar
wang静的天空
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有