I have a buffer, that is char pointer. The content of this is something like:
aaa
bbb
ccc
How can I just get the aaa first line from that char pointer?
I try to convert it into NSString first, but can I split it by \n in Objective-c?
Something like:
arrayString[0] = "aaa", arrayString[1] = "bbb", arrayString[2] = "ccc"
1 Answer