【发布时间】:2015-04-13 06:18:47
【问题描述】:
我有一个NSString,它可能有ordered bullets 或unordered bullets 作为字符串。我想从字符串中单独删除那些子弹。
有人可以帮我解决这个问题吗? 提前致谢。
【问题讨论】:
标签: ios objective-c nsstring nsattributedstring bullet-span
我有一个NSString,它可能有ordered bullets 或unordered bullets 作为字符串。我想从字符串中单独删除那些子弹。
有人可以帮我解决这个问题吗? 提前致谢。
【问题讨论】:
标签: ios objective-c nsstring nsattributedstring bullet-span
您可以使用以下代码修剪项目符号。我没有使用正则表达式。我正在给出如何识别和删除子弹的想法..
NSString *bulletString = @"\u2022";
self.lbl.text=[strWithBullets stringByReplacingOccurrencesOfString:bulletString withString:@""];
希望对您有所帮助...!
【讨论】: