使用OpenFeint获取当前的成就进度 [英] Using OpenFeint to get current Achievement progression

查看:75
本文介绍了使用OpenFeint获取当前的成就进度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我要像这样设置成就:

So I'm setting my achievement like so:

int currentPercentage = ... // Work out current percentage of progression to update too
[[OFAchievement achievement: ACHIEVEMENT_ID] updateProgressionComplete: currentPercentage andShowNotification: YES];

但是有什么方法可以从OF服务器获取currentProgression吗?

But is there anyway to get the currentProgression from the OF servers?

这将很有用,因此我可以按百分比更新进度,而不是在本地存储值。

This would be useful to know so I can update the progression by a percentage rather than storing values locally to do this.

谢谢

推荐答案

您可以通过以下方法进行调用:

you can do this by calling :

[OFAchievementService getPercentComplete:achievementId forUser:[OpenFeint lastLoggedInUserId]];

这篇关于使用OpenFeint获取当前的成就进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆