Search code examples
iphoneobjective-cios6nslog

NSLog statement for debugging


How to write NSLog statement for

pageCache.dataSource = value;

to debug it.

In debugging found that

dataSource = (objc_object*) 0x000000
 isa(objc_class*)

Thanks


Solution

  • NSLog statement to print an object to console is like this

    NSLog(@"%@", pageCache.dataSource);