Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个NSStringwhich 可能有ordered bullets或unordered bullets作为一个字符串。我想从字符串中单独删除那些子弹。
NSString
ordered bullets
unordered bullets
有人可以帮我解决这个问题吗?提前致谢。
您可以使用以下代码修剪项目符号。我没有使用正则表达式。我正在考虑如何识别和删除子弹..
NSString *bulletString = @"\u2022"; self.lbl.text=[strWithBullets stringByReplacingOccurrencesOfString:bulletString withString:@""];
希望对你有帮助……!