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

  • Home
  • SEARCH
  • 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 7681445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:20:35+00:00 2026-05-31T18:20:35+00:00

I have a one-time need to create a file from an iOS mutable array.

  • 0

I have a one-time need to create a file from an iOS mutable array. The array will be a short animated drawing.

That will be input to an app.

I write the array, and redraw it in the app, so I know that it’s getting populated.

I’ve tried to do something as simple as this:

- (void) writeFile {
//CREATE FILE
NSLog(@"%s", __FUNCTION__);
[writeArray writeToURL:[NSURL fileURLWithPath:[@"~/Desktop/animation.data" stringByExpandingTildeInPath]] atomically:NO];
}

but I must be doing something wrong, as no file appears..

As the file is small (4-8K), maybe I should take a different approach?

Any help will be appreciated.

  • 1 1 Answer
  • 0 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-31T18:20:37+00:00Added an answer on May 31, 2026 at 6:20 pm

    Of course this won’t work on the device, but I assume you’re just trying to work in the Simulator for some kind of testing. fileURLWithPath: doesn’t expand ~. You need a full path here. None of the path searching routines is going to point into your user folder in any case, since that doesn’t exist on iOS.

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

Sidebar

Related Questions

I will have to create an offline app from a received html5 file (sort
I have one particular FLA that is crashing every time I try to compile
I have a scenario where a user will have access to a one-time-url. When
I have this code to open multiple files one at a time that is
i have a time dropdown that shows hour in one select, minutes in another
I have a process that will be called rather frequently from cron to read
I have a file which has text like this: #1#14#ADEADE#CAH0F#0#0..... I need to create
This has to be a common question that all programmers have from time to
I have created a one-time subscription in SSRS report manager 2008. However I keep
i have one problem when i sort the NSMutablearray using date and time wise.

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.