0

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

4

1 回答 1

1

您需要做的就是在用于初始化 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];
于 2011-10-01T03:17:48.030 回答