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];
}
}
如何解決這個問題?
thanks..its現在的工作。 – Guru