20

I need to check my values from NSArray which are stored dynamically. How should I print the array values in Objective-C?

narner
  • 2,908
  • 3
  • 26
  • 63
sri
  • 3,319
  • 7
  • 34
  • 48

1 Answers1

41
NSLog(@"%@",yourArray);

This actually calls the description method of your NSArray and prints it to the log. http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/NSArray.html#//apple_ref/occ/instm/NSArray/description

V1ru8
  • 6,139
  • 4
  • 30
  • 46