ios9 - Display Specific Leaderboard in Game Center? -


in ios9 project, have total of 8 leaderboards associated game center. can load list of leaderboards (which great part in app); however, able load 1 particular leaderboard. here code using:

 @ibaction func showleaderboard() {     if savedsettings["difficulty"] == 0 {         print("easy")         if savedsettings["gamelanguage"] == 0 {             leaderboardid = "colorific_english_high_scores"             print("english")         } else if savedsettings["gamelanguage"] == 1 {             leaderboardid = "colorific_spanish_high_scores"         } else {             leaderboardid = "colorific_french_high_scores"         }     } else {         if savedsettings["gamelanguage"] == 0 {             leaderboardid = "colorific_english_high_scores_hard"         } else if savedsettings["gamelanguage"] == 1 {             leaderboardid = "colorific_spanish_high_scores_hard"         } else {             leaderboardid = "colorific_french_high_scores_hard"         }     }     let gcvc: gkgamecenterviewcontroller = gkgamecenterviewcontroller()     gcvc.leaderboardidentifier = leaderboardid     gcvc.gamecenterdelegate = self      gcvc.viewstate = gkgamecenterviewcontrollerstate.leaderboards      self.presentviewcontroller(gcvc, animated: true, completion: nil) } 

unfortunately, updating leaderboardidentifier seems have no effect. list of leaderboards seems show up. in fact... changing viewstate gkgamecenterviewcontrollerstate.achievements seems have no effect, either! goes list of leaderboards :(

thank in advance of help! :)

i know posted time ago, got same problem in project.

your code has no problems, issue bug ios9, there thread on apple's oficial forum other people's complaints: https://forums.developer.apple.com/thread/15997. have same problem showing specific leader board, there no official answer apple.

i tried game on device ios8, , there no problem showing specific leaderboard. right now, there no do, till apple fix issue(it has been year). suggest use apple bug reporter, can notice issue.

update ios10:

ios 10 have no problems showing specific leaderboard. looks remains ios9's problem.


Comments