【发布时间】:2016-12-08 06:54:08
【问题描述】:
为什么下面的 NSLog 结果不一样?
UIView *view = [UIView new];
NSLog(@"%p",&view); //0x7fff59c86848
[self test:&view];
-(void)test:(UIView **)view{
NSLog(@"%p",view); // 0x7fff59c86840
}
虽然以下 NSLog 结果相同?
NSInteger j = 1;
NSLog(@"%p", &j);//0x7fff5edc7ff8
[self test1:&j];
- (void)test1:(NSInteger *)j{
NSLog(@"%p", j);//0x7fff5edc7ff8
}
【问题讨论】:
标签: ios objective-c iphone