Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1028541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:24:16+00:00 2026-05-16T12:24:16+00:00

So I know iOS apps run in a sandbox and all, but I thought

  • 0

So I know iOS apps run in a sandbox and all, but I thought I remembered Apple mentioning a way for apps to write to and read from a common file share, so that you can then deal with these files on your computer when you plug you iPhone in (mount the drive). I think this was in the context on the iPad, but I’m not sure.

Anybody know anything more of this? It’s kind of a tough thing to search for.

  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:24:17+00:00Added an answer on May 16, 2026 at 12:24 pm

    Each app has a Documents directory where it can write files. To get the apps Documents directory you can use:

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    

    To write say “Hello, World!” to a file called hello.txt in the documents directory you could do something like:

    NSString *hello = @"Hello, World!";
    NSString *myFile = [documentsDirectory stringByAppendingPathComponent:@"hello.txt"];
    [hello writeToFile: myFile atomically:YES encoding:NSUTF8StringEncoding error:NULL];
    

    If you set UIFileSharingEnabled in your app’s Info.plist to YES the the files will be visible in iTunes when the device is connected and can be accessed by the user from there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The storyboard is a very powerful and easier way to build iOS apps. But
I know that you can limit apps based on iOS version, but is there
Would anyone know whether AIR for iOS apps run garbage collection?
I know that Apple's terms for apps disallows downloading and executing code, but there
I have been developing iOS apps for a while but they all deal with
I know I've seen other apps do this (at least on iOS), but I'm
I know that in iOS, if the .sqlite is updated / read by SQL
I know the ARC in iOS 5 but I'm now developing pre-iOS 5 code
I know that UIAppearance has been introduced in iOS 5, but is there any
As we all know tracking the position of a moving iOS device can be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.