2013-03-29 2 views
0

나는 초상화 게임에서 Nextpeer을 사용하고 잘 동작합니다. 조경 게임에서 동일한 코드를 사용했으나 Nextpeer 대시 보드는 세로 모드에서 계속 사용됩니다. Nextpeer 대시 보드 방향을 가로로 변경하는 방법은 무엇입니까?Nextpeer in Landscape only iphone game

-(void)initializeNextpeer:(NSDictionary *)launchOptions 
{ 
    if([self internetConnected]) 
    { 
     BOOL isRetina = (IS_IPAD) ? FALSE : TRUE ; 

     NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys: 

            // This game has no retina support - therefore we have to let the platform know 
            [NSNumber numberWithBool:isRetina], NextpeerSettingGameSupportsRetina, 
            // Support orientation change for the dashboard notifications 
            [NSNumber numberWithBool:TRUE], NextpeerSettingSupportsDashboardRotation, 
            // Support orientation change for the in game notifications 
            [NSNumber numberWithBool:TRUE], NextpeerSettingObserveNotificationOrientationChange, 
            // Place the in game notifications on the bottom screen (so the current score will be visible) 
            [NSNumber numberWithInt:NPNotificationPosition_TOP], NextpeerSettingNotificationPosition, 
            nil]; 

     [Nextpeer initializeWithProductKey:@"HERE_USED_NEXTPEER_KEY" 
           andSettings:settings 
           andDelegates:[NPDelegatesContainer containerWithNextpeerDelegate:self]]; 

     // Handle any notifications the game was launched with 
     [Nextpeer handleLaunchOptions:launchOptions]; 
    } 
} 

enter image description here

어떻게이 문제를 해결하기 위해 다음과 같습니다

내 Nextpeer 초기화 코드?

답변

5

다른 레이아웃에 대해 NextPeer에서 제공 한 Potarit 번들을 실수로 사용했다고 생각합니다. 앱에 가로 번들을 드래그 앤 드롭하십시오.

더 많은 정보를 위해이 문제를 확인하고 현재 작업 단계에서 3
Next Peer Docs

+0

thanks..its을 찾습니다. – Guru