iphone - how to make array of words contained in string? -


i have string

gpbusd buy update hit 40 pips hit 110 pips gpbusd buy break update hit 100+ gpbusd buy 1.5500/25 1.5455 new 40 100+ gpbusd buy update close 0 10 pips n gpbusd buy 1.5335/50 1.5320 new 40 80+ gpbusd buy update 15-20 pips close keep open gpbusd buy 1.5530/50 1.5505 update hit 80 keep open gpbusd buy 1.5530/50 1.5465 new 40 80 100+ gbpjpy sell 131.05/.130.75 132.15 new 60 100 keep open eurusd sell 1.2840/20 1.2870 stop update

i want make array of words contained between spaces of string?how can it?

you can try with

nsarray *words = [mystring componentsseparatedbystring:@" "];

more here


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -