|
Programmverzeichnis auslesen |
|
|
|
|
Geschrieben von: Philipp
|
|
FRIDAY, 25 JULY 2008 17:36 |
Um den Pfad zu Eurer Applikation auf dem iPhone heraus zubekommen ganz einfach folgendes ausführen:
NSString * applicationPath = NSHomeDirectory();
Hier sind einige weitere interessante Pfade zu betrachten:
NSLog(@"Support path: %@", [[NSBundle mainBundle] resourcePath]);
NSLog(@"executable path: %@", [[NSBundle mainBundle] executablePath]);
NSLog(@"privateFrameworksPath path: %@", [[NSBundle mainBundle] privateFrameworksPath]);
NSLog(@"sharedFrameworksPath path: %@", [[NSBundle mainBundle] sharedFrameworksPath]);
NSLog(@"sharedSupportPath path: %@", [[NSBundle mainBundle] sharedSupportPath]);
NSLog(@"dictionary: %@", [[[NSBundle mainBundle] infoDictionary] description]);
Interessant ist auch folgender Ansatz:
[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
|
|
LAST_UPDATED2 |