我有一组字典,字典中只有一个条目。
___ ___________
|___| --->|__|__|__|__| Array of Dictionary
|___| __|__
|___| |K|V| Dictionary
|___|
Array of Array
My dictionary content is <NSString*, UIImage*>
如何检索我的字典的值。
代码片段:
for (int i=0 ; i< [imagesToFill count]; i++) {
NSDictionary* dict = [imagesToFill objectAtIndex:i];
UIImage* img = ??? [dict] // How to retrive value from above dict which has only 1 entry
NSString* imgPath = ???
}
Note: Each dict has <NSString*, UIImage*>