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 _ $! . How do I remove pure value only, for example home? For any help please be very appreciated.

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

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -