let x = 10
print(Unmanaged<AnyObject>.passUnretained(x as AnyObject).toOpaque())
输出: 0x000060800003fe00
let x = 10
print(Unmanaged<AnyObject>.passUnretained(x as AnyObject).toOpaque())
输出: 0x000060800003fe00
本文标题:iOS 总结8 - Swift 中如何打印一个变量的地址
本文链接:https://www.haomeiwen.com/subject/uywljxtx.html
网友评论