1
ibcker 2015-09-19 14:00:48 +08:00 1
NSLog (@"%s %@ %p", __PRETTY_FUNCTION__, self.class, &self );
改为 NSLog (@"%s %@ %p", __PRETTY_FUNCTION__, self.class, self ); |
2
ibcker 2015-09-19 14:06:05 +08:00
给你写个例子,再不明白就没办法了···google 关键词:指针的指针··
TestObj *obj = [TestObj new]; NSLog (@"obj->%p",obj ); NSLog (@"&obj->%p",&obj ); TestObj *obj2 = obj; NSLog (@"obj2->%p",obj2 ); NSLog (@"&obj2->%p",&obj2 ); |