iOS - Memory arrangment

Posted on 2012-09-03
Last Modified: 2012-09-03
I’m a long-time Windows programmer with some recent experience programming for Mac OSX and no experience with iOS. Thus, my question. Am I correct in understanding that iOS device memory is organized like OSX in that there are root folders named “Applications”, “Library”, and “Users” (to name three); and that these folders can be located by using the URLForDirectory method as can be done in OSX?
Question by:efz
    LVL 14

    Accepted Solution

    Library, Applications directories still exit on iOS; but you should notice that every iOS application has its own sandbox (where the executable files, data and xib, etc. files reside) and you are just allowed to access directories and files only within your app's sandbox. if you access to files outside your app's sandbox then your app is a candidate for rejection in appstore. Also you will figure out that you don't need to access files outside your apps sandbox. (as far as you are not interested in writing hackish iOS applications)

    Here is Apple's doc about iOS apps sandbox:
    LVL 14

    Expert Comment

    by:Hamidreza Vakilian
    By the way you can use URLForDirectory method to get file paths within your app's sandbox.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    I recently went through the process of creating an installable image of an iPhone mobile app (an .ipa file) that beta testers could load onto their test devices. The process involved quite a few steps, but both Appcelerator and had decent …
    The release of the iPhone 6 and the iPhone 6 Plus was extremely successful for Apple. However when iOS 8.1 was introduced, many iPhone users complained of quick battery drainage. Without even knowing, you may be unnecessarily using up your battery p…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now