iphone - Breaking String -
i have break string in 2 parts: 2º felipe massa (bra)
1)2 2)felipe massa (bra)
i using method
myarray = [mystring componentsseparatedbystring:@"º"];
but not breaking it, , returning me this: 1\u00ba felipe massa (bra)
i know unicode character, how can break it? in advance.
try this
nsstring* blah = @"2º felipe massa (bra)"; nslog(@"%@", [blah componentsseparatedbystring:@"\u00ba"]);
you have use unicode escape sequence make work.
Comments
Post a Comment