i want to parse this string
appDelegate.gpsArray= "\n\n 21.318\n03.863\n\n\n 21.317\n03.864\n\n\n 11.316\n113.864\n\n\n"
so that i cant get value like
1) a[0]=21.318, a[1]=03.863,a[3]=11.317,a[4]=113.846....
or how to get this as 2d array like 2)
a[0,0]=21.318,103.863
a[1,1]=21.318,103.863
i did this but of no use
NSMutableArray *a1 = [[NSMutableArray alloc] init];
[a1 addObjectsFromArray:appDelegate.gpsArray ];
Kindly suggest how to use both ways like 1D and 2D