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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -