I have Game Center almost completely implemented. The only things I am currently struggling with is displaying the Achievement and Leaderboard View Controllers.
Here's how I'm currently doing things
GKAchievementViewController *achievementViewController = [[GKAchievementViewController alloc] init];
achievementViewController.achievementDelegate = self;
GKDialogController *dialogController = [[GKDialogController alloc] init];
dialogController.parentWindow = [[CCDirector sharedDirector] view].window;
Sometimes it loads the Achievement View Controller and sometimes it crashes. Mostly the error I end up with is CVDisplayLink: signal SIGABRT.
The crash appears to happen at this line:
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:nil];
within the CCDirectorMac class.
Any ideas? thoughts? solutions?
I'm running Cocos2d Ver 2.1