objective c - how do i output the contents of an array line by line to a uitextview? -


i have array of items (for excercise order line items), strings inserted line line array. how can display contents of array in textview without brackets or commas of array each line? guess along lines of iterate through array , each object take value, convert string , add line break , add string main mutable string , set textfield contents of mutable string. know how iterate array code , insert line breaks.

how this? if elements of array strings @ beginning of post, gets want.

yourtextfield.text = [yourarray componentsjoinedbystring:@"\n"]; 

each element in array have 'description' called on during joining process. nsstrings return description, if elements of array type created consider overriding 'description' format want.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -