gpt4 book ai didi

iphone - 来自底部的 OpenFeint 通知

转载 作者:行者123 更新时间:2023-11-29 05:00:25 25 4
gpt4 key购买 nike

我的应用程序中集成了游戏中心和开放假 Action 。当出现通知告诉您已成功登录时,打开的假 Action 会与游戏中心通知重叠。如何将通知移至底部。我看到了文档,但我一生都无法弄清楚如何让它工作。我看到 enum ENotificationPosition 并且它包含 ENotificationPosition_BOTTOM 但我应该将该代码放在哪里才能使其工作。

最佳答案

您需要做的就是在用于初始化 OpenFeint 的设置字典中指定它。例如,

NSDictionary* settings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:UIInterfaceOrientationPortrait], OpenFeintSettingDashboardOrientation,
kShortAppName, OpenFeintSettingShortDisplayName,
[NSNumber numberWithBool:NO], OpenFeintSettingAlwaysAskForApprovalInDebug,
[NSNumber numberWithBool:YES], OpenFeintSettingGameCenterEnabled,
window, OpenFeintSettingPresentationWindow,
[NSNumber numberWithInt:ENotificationPosition.ENotificationPosition_BOTTOM_LEFT], OpenFeintSettingNotificationPosition,
nil];

[OpenFeint initializeWithProductKey:kOFProductKey
andSecret:kOFProductSecret
andDisplayName:kLongAppName
andSettings:settings
andDelegates:delegates];

关于iphone - 来自底部的 OpenFeint 通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7115475/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com