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.
NSFileManager *filemgr;
NSString *currentpath;
filemgr = [[NSFileManager alloc] init];
currentpath = [filemgr currentDirectoryPath];
currentDirectoryPathreturns the current working directory of the program. If you launch it from Xcode in Debug mode, the current directory of the program is the Debug directory.