zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

ios swift 打印对象地址

ios地址对象 打印 swift
2023-09-14 09:04:14 时间

print(“当前对象地址为: (Unmanaged.passUnretained(self as! AnyObject).toOpaque())”)

print("当前对象地址为: \(Unmanaged<AnyObject>.passUnretained(self as! AnyObject).toOpaque())")

当前对象地址为: 0x00000001022050f0

参考博客:
Swift - 打印对象地址