Commit 46d435cb authored by Steven杜宇's avatar Steven杜宇

// 可选字符串判空

parent ffdfd409
......@@ -30,6 +30,13 @@ extension String {
}
return nil
}
static func isEmpty(string: String?) -> Bool {
if let string = string, string.count > 0 {
return false
}
return true
}
}
extension String {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment