swift 判断字符串长度

projectName.lengthOfBytes(using: String.Encoding(rawValue: String.Encoding.utf16.rawValue)) > 0

原文地址:https://www.cnblogs.com/yyj900165/p/6201539.html