Identifying iOS Application’s Documents Directory | iOS Interview Question | iOS Programmer Guide

,
We can easily identify the documents directory of an iOS Application with the help of 'NSSearchPathForDirectoriesInDomains' as given in the following objective-C code snippet

// Get the documents directory
    dirPaths = NSSearchPathForDirectoriesInDomains(
      NSDocumentDirectory, NSUserDomainMask, YES);