IOS -- Swift 字符串替换 stringByReplacingOccurrencesOfString

//去掉字符串 addMedicineAlert.customerTextField.text 中德空格

var replaceString = addMedicineAlert.customerTextField.text.stringByReplacingOccurrencesOfString(" ", withString: "")

猜你喜欢

转载自blog.csdn.net/MickeyChen_/article/details/45582793