如何从 Objective-C 中的字符串中删除不需要的字符
我有这样的字符串
abcdedfd?xyz
adcdefghdfd?red
,所以我想删除`?之后的字符
I am having string like this
abcdedfd?xyz
adcdefghdfd?red
so i wanted to remove the characters after the `?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
假设您要修剪的字符串位于
NSString *yourString
中。This assuming the string you want to trim is in
NSString *yourString
.