我有变量内容的符号或字符,我不知道你怎么说这个"\“在英语中…如何将变量中的所有\替换为空格?
var content = theContent["content"] as String
self.contentLabel.text = content.stringByReplacingOccurrencesOfString(<#target: String#>, withString: <#String#>, options: <#NSStringCompareOptions#>, range: <#Range<String.Index>?#>)
当我使用content.string时,如何填充这个空格,否则我的中文税是错误的…然后在#target中我使用相同的字符串?有人这么快就学会了Swift吗?
https://stackoverflow.com/questions/24528763
复制相似问题