How to get the value for each key in dictionary in Objective-C?

笑着哭i 提交于 2019-12-04 22:31:18
for (id key in dictobj)
{
    id value = [dictobj objectForKey:key];
    [value doSomething];
}

I'm not entirely clear what your question is asking, but you might be looking for:

for (id currentValue in [dictobj allValues])
{
    //stuff with currentValue
}
Ravi Kumar
NSArray *array = [viewControllers allValues];
for (int i = 0; i<array.count; i++) {        
    MenuListingVC *vc = array[i];
    [vc tableDataReload];
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!