objective c - How to extract pure string from a constant string -
When I continually print the value of a CFString, an address book label in the console, output value _ $!
It happens that someone decides what people with address book do, therefore, I do not think That there is no underlying task to remove them.
This problem with a simple "How do I remove the character?" questions. There are several solutions, but the simplest way is:
NSString * label = @ "_ $! ! $ _"; NSString * rawLabel = [[Label String ByerPlacing Occurrence Offstring: @ "_ $! <" WithString: @ ""] String Bayer Recording Occurrence Offstring: @ "& gt;! $ _" WithString: @ ""];
Comments
Post a Comment