title: Getting Current Directory in Objective C
body: <p>I am trying to get current directory, but its giving me path of DEBUG folder, how i can get the path of current directory. I am using the following code.</p>
  
  <pre><code>NSFileManager *filemgr;
  NSString *currentpath;
  
  filemgr = [[NSFileManager alloc] init];
  
  currentpath = [filemgr currentDirectoryPath];
  </code></pre>