1
A
回答
1
NSMutableSet *intersection = [[NSMutableSet alloc] init];
[intersection addObjectsFromArray:array];
[intersection intersectSet:[NSSet setWithArray:[dictionary allKeys]]];
intersection
包含一组都存在在你的字典键和您的阵列中的对象。
相关问题
- 1. 以编程方式生成键和值放入Python字典
- 2. 以编程方式访问iSight?
- 3. 以编程方式访问Manifest.permission?
- 4. 以编程方式访问Access Gateway
- 5. 以编程方式访问Raphael路径
- 6. 如何以编程方式访问ItemPanel?
- 7. wp7以编程方式访问SIM卡
- 8. 以编程方式访问Infinispan MBeans
- 9. 以编程方式访问TFS历史
- 10. 以编程方式访问ResourceDictionary项目
- 11. 以编程方式访问iTunes商店?
- 12. 以编程方式访问WPF控件
- 13. 以编程方式访问QFiledialog
- 14. 无法以编程方式访问dijit.Dialog
- 15. 如何以编程方式访问iptables?
- 16. 以编程方式访问iPod库
- 17. 以编程方式访问UniformGrid ItemTemplate
- 18. 以编程方式访问iMessages
- 19. 以编程方式访问Jenkins URL?
- 20. 以编程方式访问.NET API
- 21. 以编程方式访问PhotoStream
- 22. 如何以编程方式访问{{form.my_field.id_for_label}}?
- 23. 以编程方式访问saltstack minion
- 24. 以编程方式访问rowlistview
- 25. 以编程方式访问Apple App Store
- 26. 以编程方式访问httpRuntime maxRequestLength
- 27. 以编程方式访问USB端口
- 28. 以编程方式扩展iOS字典应用程序词典
- 29. 以编程方式访问字典中任意嵌套深度的值
- 30. 如何以编程方式从内置Windows Phone 7字典中访问单词?
你能提供你的数组和字典的样本吗? – 2011-04-20 18:23:43
可以将数组中的对象与字典中的对象进行比较,是的。你试过什么了? – 2011-04-20 18:31:26