Is it p开发者_如何学JAVAossible to display both the Game Kit Leaderboard and Achievement controllers simultaneously?
Documentation for both of these controllers is very light.
GKAchievementViewController
GKLeaderboardViewController
Both are calling to different views.. you can only set leaderboard display first.. and when user closes leaderboard, it show achievements.. or vice-versa..
in your function:
-(void)leaderboardViewControllerDidFinish:(GKLeaderboardViewController *)viewController
{//when leaderboard closes..
//run achievements ViewController..
}
You would have to write your own view controller & implement leaderboards & achievements together - how it would work (for the user I mean) I've no idea, but the code wouldn't be that hard, it's well documented.
精彩评论