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 8087323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:44:21+00:00 2026-06-05T18:44:21+00:00

I am able to record a .caf file in my app and play it

  • 0

I am able to record a .caf file in my app and play it back to the user. I want to be able save it permanently so I want to move it to my resources folder. I am not sure if this is the correct move or whether it would be better to put it in the documents directory but I access all my other sound files from resource so I assumed this would be the right choice. Does anyone know how to do this? Thanks!

How I save the recording to temp:

NSURL *soundFileURL=[NSURL fileURLWithPath:
                         [NSTemporaryDirectory()
                          stringByAppendingString:@"soundFile1.caf"]];
  • 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-06-05T18:44:23+00:00Added an answer on June 5, 2026 at 6:44 pm

    You cannot add, remove or modify files in your application bundle, which means you can’t add items to the resources directory.

    If the file is something the user will want to keep in the app, it should be stored in the documents directory. You may want to prevent it being backed up to iCloud, which you can do by following Apple’s instructions here.

    To get a path to the documents directory, or the path for a given filename in the documents directory, you can use methods like these:

    + (NSString *)pathForDocumentsDirectory
    {
        NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
        return [documentPaths objectAtIndex:0];
    }
    
    + (NSString *)pathForFileInDocumentsDirectory:(NSString *)filename
    {
        return [[self pathForDocumentsDirectory] stringByAppendingPathComponent:filename];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want the user to be able to record audio in an app, and
In my App, I want the user to be able to record one sound
I want to the user to be able to search for a record in
To be able to record and play back audio instantly on my website, I've
I want to be able to record a word/words that I can then later
For my app, users will be able to record a video or choose a
I am inserting a record into my table, but I want to be able
Basically, what I want is to be able to press a record in a
I’m want to save a recorded file to my apps documents but can’t figure
I'm using AVAudioRecorder and able to record voice of the user. But how can

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.