ios - textview text into array -
i want paste data text view, , want information placed array. @ moment need do, later on i'm looking place data tableview. if can me appreciated.
thank you
you can split string textview using
nscharacterset *separator = [nscharacterset newlinecharacterset]; nsarray *dataarray = [textviewstring componentsseparatedbycharactersinset:separator];
eg. text pasted
line 1 line 2 line 3
result array contain
[@"line 1",@"line 2",@"line 3"]
Comments
Post a Comment