Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例: String is---book I want "book". 2回目は別のものに変わるので、NSRangeは使っていません。
解決策はありますか? ありがとう
あなたの質問はあまり明確ではありませんが、これを使用する必要があるかもしれません:
NSString* myString = [myPrevString stringByReplacingOccurrencesOfString:@"---" withString:@""];