objective c - manually exclude some symbols from [NSCharacterSet letterCharacterSet] invertedSet] -
The code below will remove all the symbols from myString. Is still being able to use this code (by saying) removing some unique symbols? ] ComponentsJoinedByString: @ ""];
You will need to create a temporary copy and then make changes using .
NSMutableCharacterSet * mcs = [[NSCharacterSet letterCharacterSet] Inverted Set] mutableCopy]; [Remove MCS Scholarly Instruction: @ "& lt; letters you want to exclude & gt;"]; MyString = [[[Behavioral Curriculators Insights from MyString Components: MCS] ComponentsJustifiedBraged: @ ""]; [MCS release];
Comments
Post a Comment