2012-04-30 73 views
1

我发现我的问题在设备不工作和模拟器工作。 当我注释掉这一部分,它的工作原理:模拟器工作,设备不?

[OpenFeint initializeWithProductKey:@"MYKEY" andSecret:@"MYSECRET" andDisplayName:@"LatinToGo" andSettings:settings andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]]; 

所以它看起来像这样:

//[OpenFeint initializeWithProductKey:@"MYKEY" andSecret:@"MYSECRET" andDisplayName:@"LatinToGo" andSettings:settings andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]]; 

它完美的作品,当我注释掉以上部分,但是当我点击打开佯攻按钮,我得到这个错误:

EXC_BAD_ACCESS. 

我与开放佯攻我的应用程序键和我与我的应用程序的密码密钥替换我的钥匙。

当我点击打开佯攻按钮,它关系到一个文件,并突出显示该部分GREEN:

[inv invoke]; EXC_BAD_ACCESS 

然后在我的控制台时,我踏入:

2012-04-28 08:53:12.076 BalloonsPop[500:707] Application windows are expected to have a root view controller at the end of application launch Single stepping until exit from function +[OpenFeint(Private) launchDashboardWithDelegate:tabControllerName:andControllers:], which has no line number information. warning: Remote failure reply: E37

任何建议,以尝试? 非常感谢!

+0

它可能在你的模拟器上工作,因为没有网络连接可用,所以OpenFeint可能会中止操作。 – giorashc

+0

我已经在很多设备上尝试了这一切,所有与互联网,应用程序加载,但不让我点击任何按钮,应用程序导致它不工作,因为openfeint代码。 – Raoul

+0

发生这种情况是因为在您的应用程序委托中,它不会将视图赋予其他控制器(Root视图控制器),因此这意味着没有默认控制器可以回退。我用three20 navigator发生了这个错误(还没有定义默认动作)。所以这可能意味着你的openfeint调用没有返回视图。 – Panagiotis

回答

0

我不知道,如果你这样做,但我会宣布这样的:

OpenFeint *openfeint = [OpenFeint initializeWithProductKey:@"MYKEY" 
    andSecret:@"MYSECRET" andDisplayName:@"LatinToGo" andSettings:settings 
    andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:self]]; 

我希望这有助于。

+0

当添加这样的:* OpenFeint的OpenFeint的= [OpenFeint的initializeWithProductKey:@ “的myKey” andSecret:@ “MYSECRET” andDisplayName:@ “LatinToGo” andSettings:设置andDelegates:[OFDelegatesContainer containerWithOpenFeintDelegate:自]];然后我得到一个错误:无法初始化类型为'OpenFeint *'的变量,其值为void类型的值' – Raoul

相关问题