1.CGFloat 转化成String
dateCell.detailDateLabel.text=String.init(format:"%.2f",order.fare!)
2.String转化成CGFloat
StringToCGFloat1.CGFloat 转化成String
dateCell.detailDateLabel.text=String.init(format:"%.2f",order.fare!)
2.String转化成CGFloat
StringToCGFloat本文标题:swift String和CGFloat互转
本文链接:https://www.haomeiwen.com/subject/pootottx.html
网友评论