I'm trying to update my game with Game Center support and I've come across an error that ventures outside my area of expertise. I'm simply trying to load the GameCenter Leaderboards and Achievements, using Masterfalcon's sample project.
Here is the code to load the GameCenter views, straight from Apple's guide http://developer.apple.com/library/ios/ ... 04-CH6-SW9
Code: Select all
KLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init];
if (leaderboardController != nil)
{
leaderboardController.leaderboardDelegate = self;
[self presentModalViewController: leaderboardController animated: YES];
}
Code: Select all
2012-08-11 21:17:12.642 DeadmansRun[2805:707] -[AppDelegate presentModalViewController:animated:]: unrecognized selector sent to instance 0x1ce5ff80
2012-08-11 21:17:12.645 DeadmansRun[2805:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppDelegate presentModalViewController:animated:]: unrecognized selector sent to instance 0x1ce5ff80'
I realize this isn't really an Ogre problem, but it's a problem I'm having trying to use Ogre so I was hoping one of you programming gurus could provide some insight!