Monday, April 23, 2012

IOS: nsstring leave some spaces

I have a particular problem:



in a NSSTring I have this value " abcdef ghil"
I want to check if first character is a space and delete it (with stringbyreplacing...?)
and in other space (from "f" to "g") I want insert a "-"



can you help me?



if it may be helpful; I take this string from a textfield...





No comments:

Post a Comment