私のcocos2dゲーム用の3つのリーダーボードをセットアップしました。リーダーボードのボタンをクリックすると、最初のページがリーダーボードの1つになります。すべてのリーダーボードを表示して別のボードを選択するには、戻るボタンをタップする必要があります。ここ は私のコードcocos2dゲームとのゲームセンターリーダーボードの統合
- (void)leaderboard {
CCLOG(@"show leadboard");
GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init];
if (leaderboardController) {
leaderboardController.category = [[GameCenterComponent sharedGameCenter] leaderboardCategory];
leaderboardController.timeScope = GKLeaderboardTimeScopeAllTime;
leaderboardController.leaderboardDelegate = self;
AppDelegate *delegate = [UIApplication sharedApplication].delegate;
[delegate.viewController presentModalViewController:leaderboardController animated:YES];
}
}
とleaderboardController.category行をコメントアウトした後です。リーダーボードの1つで始まります。リーダーボードのリストページから始める方法はありますか?
「Welcome Back XXX」バナーの位置を変更する方法もありますか? – OMGPOP