OFHighScoreService 未在此范围内声明
我集成了 OpenFeint,在我的应用程序启动时进行编译和启动。按照 OF 网站说明进行操作:
- 从开发者门户向您的应用程序添加排行榜。
- 请注意新排行榜的唯一标识符。
In your application, submit the player’s score like this
[OFHighScoreService setHighScore: scoreGoesHere forLeaderboard:@"leaderboard_id_string" onSuccess:OFDelegate() onFailure:OFDelegate()];
当我调用此方法时:
[OFHighScoreService setHighScore:scores forLeaderboard:@"112033" onSuccess:OFDelegate() onFailure:OFDelegate()];
我收到错误:“OFHighScoreService”未在此范围内声明。我不知道该怎么做 - 我尝试导入 OFHighScore.h 但这不起作用。我需要添加高分代表吗?
I have OpenFeint integrated, compiling and launching when my app launches. Following the OF website instructions of:
- Add a leaderboard to your application from the Developer Portal.
- Note the Unique Identifier of your new leaderboard.
In your application, submit the player’s score like this
[OFHighScoreService setHighScore: scoreGoesHere forLeaderboard:@"leaderboard_id_string" onSuccess:OFDelegate() onFailure:OFDelegate()];
When I call this:
[OFHighScoreService setHighScore:scores forLeaderboard:@"112033" onSuccess:OFDelegate() onFailure:OFDelegate()];
I get an error: 'OFHighScoreService' was not declared in this scope. I'm not sure what to do - I tried importing OFHighScore.h but that didn't work. Do I need to add a highscore delegate?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦。必须包含 OFHighScoreService.h。匆忙中,刚刚看到了OFHighScore。
Doh. Had to include OFHighScoreService.h. In a rush and just saw OFHighScore.