【发布时间】:2012-04-02 07:05:03
【问题描述】:
对于我的 iPhone 应用,我想管理 NSMutableDictionary 或 NSMutableAarray 中的值。
我想以这种格式存储评分
round player1 player2
1 6 8
2 7 9
-- -- --
在我的情况下,回合数将是固定值假设 10,总玩家将是 2,这也是固定的。
但用户可以按任何随机顺序提交他们的分数,但只需单击一次按钮。意味着
score for round "10" for both the player enter
score for round "2" for both the player enter
我如何管理字典或数组以帮助我轻松地再次检索它们?
【问题讨论】:
标签: iphone objective-c cocoa nsmutablearray nsmutabledictionary