首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Nextpeer in Landscape only iphone游戏

Nextpeer in Landscape only iphone游戏
EN

Stack Overflow用户
提问于 2013-03-29 16:43:00
回答 1查看 344关注 0票数 0

我在人像游戏中使用了Nextpeer,效果很好。在风景游戏中使用了相同的代码,但Nextpeer仪表板仍处于纵向模式。如何将Nextpeer仪表板方向更改为横向?

下面是我的Nextpeer初始化代码:

代码语言:javascript
运行
复制
-(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];
    }
}

如何解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-03-29 16:46:35

我认为您错误地使用了NExtPeer提供的Potarit捆绑包,用于将不同的layouts.Please拖放到您的应用程序中。

有关更多信息,请查看此内容并查看步骤3

Next Peer Docs

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15699972

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档