ios7 - Game Center Leaderboard score upload failed in iOS 7.0 -
i've googling because i've issue in implementing game center leaderboard in ios 7.. i've got 1 important thing solving issue. ios 7.0, should use identifier instead of category because category deprecated ios 7.0.. fact here. https://developer.apple.com/library/mac/documentation/networkinginternet/conceptual/gamekit_guide/leaderboards/leaderboards.html#//apple_ref/doc/uid/tp40008304-ch6-sw13
so used identifier ... still faces same issue... score upload fails..
belows code reporting score.
gkscore *scorereporter = [[gkscore alloc] initwithleaderboardidentifier: identifier]; scorereporter.value = score; scorereporter.context = 0; scorereporter.shouldsetdefaultleaderboard = yes; nsarray *scores = @[scorereporter]; [gkscore reportscores:scores withcompletionhandler:^(nserror *error) { //do interesting here. [self calldelegateonmainthread: @selector(scorereported:) witharg: null error: error]; }];
when reports score, shows error , error "the requested operations not completed because 1 or more parameters invalid."
any solution it? i've been devoting 2 days not getting funny.. give me solution? need helps .. thanks..
i solved issue removing line
scorereporter.shouldsetdefaultleaderboard = yes;
:) hope helps other developers facing same issue was...
Comments
Post a Comment