Objective-C Language NSArray

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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


Got any Objective-C Language Question?