如何获取 Objective-C 字典中每个键的值?
我正在维护一个包含键和值对的 NSMutableDictionary。现在我需要对其中的每个值执行一些操作。如何从字典中检索值。
// this is NSMutableDIctionary
NSMutableDictionary *dictobj = [[NSMutableDictionary alloc]init];
// in methodA
-(void)methodA
{
//get the value for each key and peform an operation on it.
}
如何进行?请帮忙
I'm maintaining a NSMutableDictionary
which holds key and value pair.Now i need to perform some operation for each value in it.How to retrive value from dictionary.
// this is NSMutableDIctionary
NSMutableDictionary *dictobj = [[NSMutableDictionary alloc]init];
// in methodA
-(void)methodA
{
//get the value for each key and peform an operation on it.
}
How to proceed? plz help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不完全清楚你的问题在问什么,但你可能正在寻找:
I'm not entirely clear what your question is asking, but you might be looking for: