Monday, July 15, 2013

Arrays in Objective C | NSArray & NSMutableArray

Arrays in Objective C

Array is an important thing in all programming language. An Array is an object which have collection of other obejcts. But some of other object oriented programming language will only allow same kind of type in an array.

 In Objective C array is handled by Foundation Frame work  that is, NSArray class and NSMutableArray class.

What is NSArray and NSMutableArray?
In Objective C we can use array in two forms NSArray and NSMutableArray.
NSArray:- is an immutable array, that means array cannot be changed after initialized.
NSMutableArray:- is used to create mutable array, we can change anytime after initialized. 

No comments:

Post a Comment