NSArray

Download objective-c eBook

Syntax

  • NSArray *words; // Declaring immutable array
  • NSMutableArray *words; // Declaring mutable array
  • NSArray *words = [NSArray arrayWithObjects: @"one", @"two", nil]; // Array initialization syntax
  • NSArray *words = @[@"list", @"of", @"words", @123, @3.14]; // Declaring array literals
  • NSArray *stringArray = [NSArray arrayWithObjects: [NSMutableArray array], [NSMutableArray array], [NSMutableArray array], nil]; // Creating multidimentional arrays

Related Examples

Stats

279 Contributors: 26
Thursday, May 18, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook