当前位置:编程学习 > wap >>

IOS Game center 连接问题

//连接,登陆game center  错误信息

AudioStreamBasicDescription:  2 ch,  44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved
2013-02-26 12:01:01.406 zhzz[12982:1cd03] Application windows are expected to have a root view controller at the end of application launch
2013-02-26 12:01:02.411 zhzz[12982:1cd03] 失败  Error Domain=GKErrorDomain Code=2 "所请求的操作已被取消。" UserInfo=0x136109e0 {NSLocalizedDescription=所请求的操作已被取消。}

我的调用代码:

- (void) authenticateLocalPlayer
 {
         [[GKLocalPlayer localPlayer] authenticateWithCompletionHandler:^(NSError *error){
                 if (error == nil) {
                        //成功处理
                         NSLog(@"成功");
                        NSLog(@"1--alias--.%@",[GKLocalPlayer localPlayer].alias);
                         NSLog(@"2--authenticated--.%d",[GKLocalPlayer localPlayer].authenticated);
                         NSLog(@"3--isFriend--.%d",[GKLocalPlayer localPlayer].isFriend);
                         NSLog(@"4--playerID--.%@",[GKLocalPlayer localPlayer].playerID);
                         NSLog(@"5--underage--.%d",[GKLocalPlayer localPlayer].underage);
                     }else {
                             //错误处理
                             NSLog(@"失败  %@",error);
                         }
             }];
     } ios game center xcode
补充:移动开发 ,  iPhone
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,