美文网首页
Swift工具方法

Swift工具方法

作者: 周末年安 | 来源:发表于2019-11-04 17:44 被阅读0次

    地址打印

    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
    

    相关文章

      网友评论

          本文标题:Swift工具方法

          本文链接:https://www.haomeiwen.com/subject/ppwdbctx.html