Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Development: What kind of data structures are available?

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.)?

like image 836
Jake Avatar asked Apr 20 '09 01:04

Jake


People also ask

What are the data structures in iOS?

The three most common data structures in iOS are arrays, dictionaries and sets, each of which deserves your attention. In this section, you'll: Consider how they differ in ideal terms as fundamental abstractions. Examine the performance of the actual concrete classes that iOS offers for representing those abstractions.

Is DSA required for iOS development?

Yes, having the knowledge of Algorithms and Data structures is important in making efficient and highly performant iOS apps. It is worth noting that you can make some basic iOS apps without knowing much about Data Structures and Algorithms.

Which programming is used for iOS development?

Swift is a powerful and intuitive programming language for iOS, iPadOS, macOS, tvOS, and watchOS. Writing Swift code is interactive and fun, the syntax is concise yet expressive, and Swift includes modern features developers love.


1 Answers

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:

  1. NSArray
  2. NSDictionary (hash)
  3. NSSet (set)

You can have a companion document on them here.

like image 178
Pablo Santa Cruz Avatar answered Oct 02 '22 04:10

Pablo Santa Cruz