I don't know if it is possible, but I would like to call a view controller's method in a class object. I have method like this in my view controller's .m
file:
-(void)showLeaderBoard
{
GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init];
if (leaderboardController != nil){
leaderboardController.leaderboardDelegate = self;
[self presentModalViewController: leaderboardController animated: YES];
}
}
I would like to call that method in a SKScene
file.