2013-03-29 81 views
0

我使用Nextpeer在肖像遊戲,並正常工作。在橫向遊戲中使用相同的代碼,但Nextpeer儀表板仍然處於縱向模式。如何將Nextpeer控制面板的方向更改爲橫向?Nextpeer在景觀只有iphone遊戲

這裏是我的Nextpeer初始化代碼:

-(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

如何解決這個問題?

回答

5

我想你錯誤地使用了由NExtPeer提供的Potarit捆綁包用於不同的佈局。請將橫向捆綁包拖放到您的應用中。

欲瞭解更多信息檢查並看看在步驟3
Next Peer Docs

+0

thanks..its現在的工作。 – Guru