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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:40:08+00:00 2026-06-08T23:40:08+00:00

I am developing an application in iPhone .This application need to store 3 music

  • 0

I am developing an application in iPhone .This application need to store 3 music file (.mp3) to iOS device (the files are from a webserver). The downloading function working perfectly (Using ASIHTTPrRequest). Some time the music saving not working perfectly, that means I am using a checking before the music file go to music player.

playpath=@"/Users/company/Library/Application Support/iPhone Simulator/5.0/Applications/3D5AD723-F18E-4F44-B3CB-FAEF2EA4963B/Documents/329/25-06-2012/330217/work25-06-2012330217.mp3"

 NSFileManager*fileM=[NSFileManager defaultManager];
if([fileM isReadableFileAtPath:playpath])
    {

     }

The playpath (directory path) change with each downloading. some time the downloading paths playing the music and some time this not playing ie this path can not satisfied the above condition .

My questions are

  1. What is reason for the above problem?
  2. What is the exact functionality of isReadableFileAtPath?
  • 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-08T23:40:10+00:00Added an answer on June 8, 2026 at 11:40 pm

    Instead of explicitly writing out the file path, have the device find the path for you. Here’s what I do:

    - (NSString*) saveFilePath: (NSString *) add
    {
        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
        NSString *path = [paths objectAtIndex:0];
        NSString *filename = [path stringByAppendingPathComponent:add];
        return filename;
    }
    

    Add this to whatever class needs to save or load data. Then you’ll be able to get the location of your file with:

    [self saveFilePath:@"Name of file you want to load or write to"]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a file selector in an iPhone application I am developing to select
I really need help with this issue. I'm developing an iOS application with audio
I am new to this iPhone development. Am developing a catalogue application. In that
I'm developing one application for iphone using phone gap.I that I need to display
I am developing an iPhone application, in which i need to write characters scan
I am developing an iPhone application in which I am fetching data from a
I am developing an iPhone application that retrieves the data from remote MySQL server.
I'm developing an iPhone application and I'm trying to do this: I want an
I am developing an application where I need to know some of my iphone
i am developing an application in iPhone, where i need to implement my 5

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.