Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/114.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone GameKit框架有漏洞还是过时了?_Iphone_Ios_Game Center_Gamekit - Fatal编程技术网

Iphone GameKit框架有漏洞还是过时了?

Iphone GameKit框架有漏洞还是过时了?,iphone,ios,game-center,gamekit,Iphone,Ios,Game Center,Gamekit,我目前正在一个应用程序上实现游戏中心。我跟随了这首芭蕾舞曲,他们两人都有这样的球员路线 [GKLocalPlayer localPlayer] 我缓慢而坚定地遵循这些步骤,但每次我编译我的作品时,我都会有这样的感觉 GK本地球员未申报和GK得分以及GK中的其他球员 我想知道我的游戏套件框架是否有问题 我似乎找不到问题,因为其他尝试过这些教程的人成功地找到了它 以下是代码的一部分,其中包括GKLocalPlayer(在教程1中): PS:我的模拟器是ios4.0,我的xcode是3.2.3(为您

我目前正在一个应用程序上实现游戏中心。我跟随了这首芭蕾舞曲,他们两人都有这样的球员路线

[GKLocalPlayer localPlayer]
我缓慢而坚定地遵循这些步骤,但每次我编译我的作品时,我都会有这样的感觉

GK本地球员未申报GK得分以及GK中的其他球员

我想知道我的游戏套件框架是否有问题

我似乎找不到问题,因为其他尝试过这些教程的人成功地找到了它

以下是代码的一部分,其中包括GKLocalPlayer(在教程1中):

PS:我的模拟器是ios4.0,我的xcode是3.2.3(为您链接的文档),与ios4.1一样,也是在ios4.1中引入的


以iOS 4.1及更新版本为目标,确保您的项目中包含GameKit框架,如果您有相同的问题,请告知我们。

我仍在使用xcode 4.2,我想这需要一些时间。。我希望在这之后你还会在那里:)好吧。。。我可能很快就要睡觉了(因为程序员也需要休息一下)。如果你对XCode 4.2和iOS 4.1及更新版本有同样的问题,请再次给我打电话;否则,将任何新问题作为新帖子发布,毫无疑问,其他人会急切地帮助你。好的,谢谢,我想我现在接受你的回答:)如果我仍然有相同的问题,我将发布一个新的。。。再次感谢
- (void) authenticateLocalUser
{
    if([GKLocalPlayer localPlayer].authenticated == NO)
    {
        [[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error) 
         {
             [self callDelegateOnMainThread: @selector(processGameCenterAuth:) withArg: NULL error: error];
         }];
    }
}