0

I'm creating a registration app. It has two tabs, one tab is the registration form for students to fill out, and the other gives the user the ability to update the form.

I'm still pretty new to iOS development, as well as Objective-c. Currently I'm saving a .csv file that contains the form data in the documents directory, in hopes that the app user can pull that file off the iPad and open it in microsoft excel. Unfortunately I'm not an Apple Developer yet, so I am not able to test it with a physical device, and I have read the documentation but didn't find what I was looking for.

Is this possible? If not, what is the best way to save a file and then have the ability to upload it to a computer?

  • Some (many) apps resort to services like Dropbox for this – Pekka Jul 29 '15 at 19:46
  • You can set a value in your app's plist to enable sharing through iTunes: http://stackoverflow.com/questions/6029916/how-to-enable-file-sharing-for-my-app (Or, if you want to do the upload directly, there are networking classes.) – Phillip Mills Jul 29 '15 at 19:53
  • How could you use dropbox? Also the person I'm making this for really does not want the app on iTunes, since it is for a university, so that is not going to work. Could you explain a bit more about these networking classes? – Alex Cauthen Jul 29 '15 at 20:21
  • Just a note that sharing via iTunes does not require that the application be on the App Store...different things. – Phillip Mills Jul 30 '15 at 14:45

1 Answers1

1

There is more than one way to provide your users with a way to receive files that are saved in your app (some options already mentioned in the comments).

You can implement several methods and let your users choose their preferred one, taking into account that not all of them would like to use the same method (using iTunes for file sharing is not for everyone for example).

So here are the options you have, there are probably more but I think this would be enough for this purpose:

  1. Email the file as an attachment
  2. Upload the file to a 3rd party service: Dropbox, Google Drive, iCloud, Evernote, etc.
  3. Upload to FTP.
  4. iTunes file sharing. You can allow users to access files in the documents folder via iTunes. Look for info about the UIFileSharingEnabled key.
Artal
  • 8,933
  • 2
  • 27
  • 30