iOS swift CustomStringConvertible 协议,方便我们自定义输出调试。
structPeople{letname:Stringletage:Int}
extensionPeople:CustomStringConvertible{vardescription:String{return"name:\(name),age:\(age)"}}
iOS swift CustomStringConvertible 协议,方便我们自定义输出调试。
structPeople{letname:Stringletage:Int}
extensionPeople:CustomStringConvertible{vardescription:String{return"name:\(name),age:\(age)"}}
本文标题:iOS swift CustomStringConvertib
本文链接:https://www.haomeiwen.com/subject/cbhegltx.html
网友评论