|
起首,这内里存放的就是我们在openfeint里为这个游戏申请的Product Key和Product Secret, 3. 配置info a.打开project的info。
7.想通过openfeint的考核。 这个文件我暂且叫它为“ 当地隐 藏信息表 ”吧, degreesToRadian(-90));} else {notification.transform = CGAffineTransformRotate(notification.transform,点击左上角的Add New Achievement,这个Bundle identifier在你建造证书的进程中就会相识到,而且解锁成绩并不会重复呈现解锁提醒, 1.打开官网 2.选右上角的 Developers一项。 导致Game Center上的用户产生变革,会提醒你得 到了一个高分,CoreGraphics, 二、 openfeint的配置(2.4.8版) 以下步调是假设你从没安装过openfeint。 没有收集, 2.将openfeint文件夹拖入你的project中,tempAchievement.identifier);}}}]; } 函数中NSArray返回的是你的全部成绩ID. 要领二:按照ID获取成绩 - (GKAchievement*) getAchievementForIdentifier: (NSString*) identifier{NSMutableDictionary *achievementDictionary = [[NSMutableDictionary alloc] init];GKAchievement *achievement = [achievementDictionary objectForKey:identifier];if (achievement == nil){achievement = [[[GKAchievement alloc] initWithIdentifier:identifier] autorelease];[achievementDictionary setObject:achievement forKey:achievement.identifier];}return [[achievement retain] autorelease]; } 6.3获取成绩描写和图片 在自界说界面中,achDescription.identifier);NSLog(@2..achievedDescription..%@,提交失败,按钮的成果是提交最高分数)也没有任何的结果。 直接打苹果在中国的客服,更新为: - (void)notifyAchievement:(GKAchievementDescription *)achievement{GKAchievementNotification *notification = [[GKAchievementNotification alloc] initWithAchievementDescription:achievement];notification.frame = kGKAchievementFrameStart;notification.handlerDelegate = self;//Adjusting rotation.if ([[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationLandscapeLeft) {notification.transform = CGAffineTransformRotate(notification.transform,然则当我提交的时辰,既然这个可以完成我们的要求,会自动解锁该成绩. - (void) reportAchievementIdentifier: (NSString*) identifier percentComplete: (float) percent{GKAchievement *achievement = [[[GKAchievement alloc] initWithIdentifier: identifier] autorelease];if (achievement){achievement.percentComplete = percent;[achievement reportAchievementWithCompletionHandler:^(NSError *error){if (error != nil){//The proper way for your application to handle network errors is retain//the achievement object (possibly adding it to an array). Then, error);} else {if (descriptions != nil){for (GKAchievementDescription* a in descriptions) {[achievementsDescDictionary setObject: a forKey: a.identifier];}}}}];}“retrieveAchievmentMetadata”要了解初始化全部信息库,以是这里Himi先容怎样仿照官方的成绩提醒: (责任编辑:admin) |


