我在人像游戏中使用了Nextpeer,效果很好。在风景游戏中使用了相同的代码,但Nextpeer仪表板仍处于纵向模式。如何将Nextpeer仪表板方向更改为横向?
下面是我的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];
}
}

如何解决这个问题?
发布于 2013-03-29 16:46:35
我认为您错误地使用了NExtPeer提供的Potarit捆绑包,用于将不同的layouts.Please拖放到您的应用程序中。
有关更多信息,请查看此内容并查看步骤3
Next Peer Docs
https://stackoverflow.com/questions/15699972
复制相似问题