suj*_*jay 1 objective-c nsdictionary nsarray ios
我有一个变量声明为NSDictionary.如何将其复制到extern const NSArray变量?例如:
NSMutableDictionary *selectedItem = [self.dataArray objectAtIndex:indexPath.row];
[selectedItem setObject:[NSNumber numberWithBool:targetCustomCell.checked]
forKey:@"checked"];
Run Code Online (Sandbox Code Playgroud)
pt2*_*ph8 15
allKeys返回NSArray包含所有键的内容.allValues返回NSArray包含所有值的内容.
NSArray *keys = [myDict allKeys];
NSArray *values = [myDict allValues];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12316 次 |
| 最近记录: |