Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to split a string on the iPhone?

I have got below value(dynamic) from the server:

drwxr-xr-x    9 0        0            4096 Jan 10 05:30 California

Now i want to get valu like this.

drwxr-xr-x
9
0
0
4096
Jan 10
05:30 
California

Please help me for this question

like image 334
MD. Avatar asked Dec 03 '22 06:12

MD.


1 Answers

you can try smth like this

NSArray* components = [initialString componentsSeparatedByString:@" "];

like image 164
Morion Avatar answered Dec 27 '22 03:12

Morion