WallE
Aspiring developer
Profile
Posts: 73
Reg: Jan 29, 2012
Burlington, Can...
2,880
04/15/13 07:03 AM (12 years ago)

Quiz / Game Center integration compile error on BT 2.0

Using the 'Game-Center-Tutorial.pdf' tutorial I'm trying to integrate the Interactive Quiz plugin to Game Center. My app is using the BT v2.0 platform. I'll followed it to the letter (twice at least) and I get the following error: "Parse issue - Expected expression". It's in the 'BT_screen_quiz.m' file: //show scoreboard -(void)showScoreboard{ GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init]; if (leaderboardController != NULL) { ERROR-> leaderboardController.category = self.currentLeaderBoard; leaderboardController.timeScope = GKLeaderboardTimeScopeWeek; leaderboardController.leaderboardDelegate = self; [self presentModalViewController: leaderboardController animated: YES]; } } My deployment target was set to 6.0 (which was required by a couple of other plugins) but I set it back to 5.1 which fixed a few other issues with the quiz/game center integration for now. So at this stage I'm stuck with this one "Parse issue - Expected expression". Here's a screenshot of the Xcode screen: https://www.sugarsync.com/pf/D1063566_77067440_70520 Thx for any help.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/15/13 07:09 AM (12 years ago)
I know it sounds mad but just copy the one above it and paste it over that line that is erroring. occassionally xcode throws these little blips to test us
 
WallE
Aspiring developer
Profile
Posts: 73
Reg: Jan 29, 2012
Burlington, Can...
2,880
like
04/15/13 09:50 AM (12 years ago)
Wow, I'll add that to my debugging notes. I did use the Xcode option: Editor > Show Invisibles, to look for bad characters etc., but it didn't show anything strange. The only thing I seem to be missing now is on the final quiz screen there is no "Show Scoreboard" button. Screenshot: https://www.sugarsync.com/pf/D1063566_77067440_70971 I'll try to see why that button is missing. Thx for your help.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
04/15/13 09:52 AM (12 years ago)
Did it work then,
 
WallE
Aspiring developer
Profile
Posts: 73
Reg: Jan 29, 2012
Burlington, Can...
2,880
like
04/15/13 01:40 PM (12 years ago)
Sorry, yes that did work. And after that error was cleared there was another one that I was able to fix the same way. Now I just have to figure out how to get the Game Center to open via the "Show Scoreboard" button. Thx for your help.
 
WallE
Aspiring developer
Profile
Posts: 73
Reg: Jan 29, 2012
Burlington, Can...
2,880
like
04/15/13 02:46 PM (12 years ago)
FYI... I found code to open the Game Center Scoreboard in the quiz plugin (copied from the Game Center Tutorial), but there was no code to create the required button and to link it to the code. All good now. Thx for your help.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.