iPhone开发:什么样的数据结构可用? [英] iPhone Development: What kind of data structures are available?
本文介绍了iPhone开发:什么样的数据结构可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是一个非常新手的问题,但iPhone API是否提供任何数据结构(即链表,散列图等)?
解决方案
您可以使用iPhone SDK上的C或C ++实施的任何数据结构。
请多使用标准库。
- NSArray
- NSSet(set)
< (hash)
a href =http://developer.apple.com/documentation/cocoa/conceptual/collections/index.html =nofollow noreferrer>此处。
This is a very newbie questions, but does the iPhone API provide any data structures to work with (i.e. linked list, hash map, etc.)?
解决方案
You can use any data structure implemented on C or C++ with iPhone SDK.
For example, I use standard library a lot.
Besides that, you can also use Cocoa's complex data structures available like:
- NSArray
- NSDictionary (hash)
- NSSet (set)
You can have a companion document on them here.
这篇关于iPhone开发:什么样的数据结构可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文