Replacing one character in a string in Objective-C

前端 未结 4 846
故里飘歌
故里飘歌 2020-11-30 07:22

Hoping somebody can help me out - I would like to replace a certain character in a string and am wondering what is the best way to do this?

I know the location of th

4条回答
  •  感情败类
    2020-11-30 07:38

    Use the replaceCharactersInRange: withString: message on a NSMutableString object.

提交回复
热议问题