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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -