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

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -