Forum Archive

How to show a row values in csv file with scrollview

yoyo

I want to show each row in csv file on iOS application GUI.
Is Scroll view a proper component?

What I want do is to show a following row values without comma on GUI.
Can you please tell me how to display Sample.csv without comma by using scroll view?

Sample.csv:
1,Value A
2,Value B

mikael

@yoyo, use ui.TextView (which is also a ScrollView). Read the whole file into a string variable, use replace to replace the commas with space or an empty string, then set the text attribute of the view.

yoyo

Thank you so much!
I got it!