Swift工具方法

地址打印

let s = "qwqeq"
let arr = [s, "12", "33"]
print(Unmanaged.passUnretained(arr as AnyObject).toOpaque())
print(Unmanaged.passUnretained(arr[0] as AnyObject).toOpaque())
print(Unmanaged.passUnretained(arr[1] as AnyObject).toOpaque())
print(Unmanaged.passUnretained(arr[2] as AnyObject).toOpaque())

rm -rf ~/Library/Developer/CoreSimulator/Devices
killall -9 com.apple.CoreSimulator.CoreSimulatorService