//连接,登陆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);
}
}];
}在我的工程里面,在 iphone6.1和iphone5.1上可以跑,但在iphone6.0上就无法运行。求解
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);
}
}];
}在我的工程里面,在 iphone6.1和iphone5.1上可以跑,但在iphone6.0上就无法运行。求解
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货