作者:wang静的天空 | 来源:互联网 | 2023-08-13 13:32
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 个解决方案