iOS 总结8 - Swift 中如何打印一个变量的地址
2017-09-02 本文已影响9人
ngugg
let x = 10
print(Unmanaged<AnyObject>.passUnretained(x as AnyObject).toOpaque())
输出: 0x000060800003fe00
let x = 10
print(Unmanaged<AnyObject>.passUnretained(x as AnyObject).toOpaque())
输出: 0x000060800003fe00