11月 05 swift2 切割字符串 Posted on 2015 年 11 月 5 日 by 张 子萌 let getSte=”hello.nihao” let cutStr=getStr.characters.split{$0 == “.”} print(“\(cutStr[0])”)