I am developing an app where users can upload a csv file to documents folder of app (I finished it). But I want to give a textfield to users in the app and ask them to enter a id number and this number will be checked with the uploaded csv files first column. If it matches then display an alert saying that its found a match or else it doesn’t.
Share
I believe csv files are text files with comma separated columns and newline (\n) separated rows. So one way to search every row’s first column element would be to use NSString’s method componentsSeparatedByString:.
EDIT: Load csv file into NSString instance.