开发者

How can I get an achievementID from an OFAchievement *?

开发者 https://www.devze.com 2023-03-09 16:41 出处:网络
[OFAchievement achievements] returns an NSArray of OFAchievement *\'s.OFAchievement has several properties, including title and description but it does not have an acheivementID property.I could call

[OFAchievement achievements] returns an NSArray of OFAchievement *'s. OFAchievement has several properties, including title and description but it does not have an acheivementID property. I could call [OFAchievement achievement:(NSString *)] for each of my game's achievements and match up the title, but that seems slow and awkward.

Is there a better way?

Should I just ignore [OFAchievement achievements] and only use [OFAchievement achievement:(NSString *)] with my own list of achievementIDs?

I am using OpenFei开发者_开发知识库nt 2.7.4.

0

精彩评论

暂无评论...
验证码 换一张
取 消