r/ObjectiveC • u/adamcym • Sep 15 '20
[Question] Split string into each array of each letter.
I am trying to take a string (Ex. 1234) and split it into an array of (1, 2, 3, 4), and then each individual number/letter be placed in it's own label. I have tried [string componentsSeparatedByString:@""];, but that didn't seem to work.
1
Upvotes
1
u/mariox19 Nov 23 '20 edited Nov 24 '20
This way delves down into simple C:
0
u/[deleted] Sep 15 '20
Have you tried casting it to a c-string which is an array?
0
u/[deleted] Sep 15 '20
[deleted] β view deleted comment