Alternative for print_r in php for iphone (objective-c)?

I started with programming objective-c / iphone a couple of days ago and still have some problems with switching from other languages. I am testing with NSArrays and NSMutableArrays right now, and it is very annoying that I haven’t found any method to efficiently display the contents of my arrays (without looping and displaying line by line).

Is there any simple way, like print_r in PHP or console.log, in javascript (with Firefox & & firebug)?

Really appreciate any help :)

+3
source share
1 answer

Use NSLogfor example:

NSLog(@"This is my NSArray: %@", [myNSArray description]);
+5
source

Source: https://habr.com/ru/post/1719122/


All Articles