objective c - How to read from a csv file saved offline in iOS app . -


i have dragged , dropped .csv file in ios app want read . know method read file don't know how figure out path of .

so, how can figure out path ?

use pathforresource:

nsstring *filepath = [[nsbundle mainbundle] pathforresource:@"filename" oftype:@"fileextension"]; 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -