0

SpriteKit에서 GKLeaderboard를 사용하려면 어떻게해야합니까?SpriteKit의 GK 리더 보드?

리더 보드를 제시하려고 할 때이 문제가 발생했습니다. 사전에

-(void) showLeader 
{ 
    GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init]; 
    if (leaderboardController != nil) 
    { 
     leaderboardController.leaderboardDelegate = self; 
     [self presentModalViewController:leaderboardController animated:YES]; 

    } 
} 

감사 :

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setShowsFPS:]: unrecognized selector sent to instance 0x17017fb00' 

First throw call stack: 
(0x18df0ef50 0x19a4181fc 0x18df13c04 0x18df11930 0x18de315dc 0x100069e00 0x190ed8670 0x190ed83f4 0x190fccd08 0x18df13700 0x18de2ceec 0x1911d5ee4 0x18ed278dc 0x18df13700 0x18de2ceec 0x19a9f0014 0x19a9effd4 0x19a9f31dc 0x18decec2c 0x18deccf6c 0x18de0dc20 0x193af5c0c 0x190f3efdc 0x1000dcb34 0x19aa0baa0) 
libc++abi.dylib: terminating with uncaught exception of type NSException** 

내 방법은 리더 보드를 표시합니다!

+0

[간단한 스프라이트 키트 장면 설정이 잘못된 것]의 중복 가능성 (HTTP : //stackoverflow.com/questions/19889543/simple-sprite-kit-scene-setup-going-wrong) – LearnCocos2D

답변