-3
我有一个的NSString:如何从NSString中删除字符并用空格替换?
NSString *string1 = @"http://example.com/this-is-an-example-post"
通过去除范围我把它substringed到characteres的:
NSString *string2 = @"this-is-an-example-post"
但我挣扎着爬入的形式:
NSString *string3 = @"this is an example post"
有什么帮助吗?非常感激。
'stringByReplacingOccurrencesOfString:withString:' –