tags:

views:

53

answers:

1

Hi,

I need check my values from NSArray which stored dynamically, so how should i print the array values in objective-c?

Sri

+2  A: 
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
And the description method of each object in it.
John Franklin
Note that the `description` is intended for debugging use only. Don't use it as something you want to store and parse later.
bbum