开发者

Is it possible to display GKAchievementViewController and GKLeaderboardViewController together?

开发者 https://www.devze.com 2023-02-22 12:37 出处:网络
Is it p开发者_如何学JAVAossible to display both the Game Kit Leaderboard and Achievement controllers simultaneously?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消