XCode中打印的结果:nil 、(null)、<nul
2017-07-20 本文已影响5人
我是一条小青龙_
test打印的结果:
1.nil
if(!test){
NSLog:nil
}
2.(null)
if(test==nil){
NSLog: (null)
}
3.<null>
if([test isEqual:[NSNUll null]]){
NSLog:<null>
}
if(!test){
NSLog:nil
}
2.(null)
if(test==nil){
NSLog: (null)
}
3.<null>
if([test isEqual:[NSNUll null]]){
NSLog:<null>
}