替换单个出现的字符串 Obj-c
我试图仅用另一个字符串替换 NSString 的出现一次。我知道您可以使用 stringByReplacing*Occurrences*OfString;然而,这会取代所有出现的情况。我正在寻找的更像是 stringByReplacing*Occurrence*OfString。如果有人能帮助我那就太好了。谢谢, 智者
I am trying to replace only one of the occurrences of a NSString with another string. I know that you can use stringByReplacing*Occurrences*OfString; however, that replaces all occurrences. What I am looking for is more like stringByReplacing*Occurrence*OfString. If anyone could help me that would be great. Thanks,
Jnani
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样的东西吗?
Something like this?