UILabel 获取行数
2017-04-25 本文已影响757人
ping_oO
let lines = label.value(forKey: "measuredNumberOfLines")
print("lines --- \(lines ?? "Null")")
let lines = label.value(forKey: "measuredNumberOfLines")
print("lines --- \(lines ?? "Null")")