0
 NSMutableArray *foo = [NSMutableArray arrayWithCapacity:12];
 NSLog(@" foo is 0x%x", foo);  // worked in XCode 4.0 to return the hex address of this variable     

现在它给出编译器警告:

转换指定类型“无符号整数”,但参数的类型为“NSMutableArray”

例如,如何获得像“foo is 0x53a6d0”这样的输出?

4

1 回答 1

0

我找到了答案(30 个字符)它是:%p

于 2011-10-21T18:07:55.610 回答