【发布时间】:2011-05-15 04:46:12
【问题描述】:
在 C++ 中,EventType.find(1)->second 可用于查找键 1 的值。
我是 Objective C 的新手。我已经实现了 CFDictionary 来增加它的价值。但是我该怎么做
retreive 并查看特定键的values。
已编辑:
CFNumberRef tId = CFNumberCreate(NULL,kCFNumberShortType,&st);
CFDictionarySetValue(cfdict,tId,st);
NSLog(@"The value is:%s",(CFDictionaryGetValue(cfdict,tId)));
它运行没有错误,但我无法得到输出。
【问题讨论】:
标签: objective-c core-foundation