Home Code-Schnipsel System Programmverzeichnis auslesen

iPhone Gewinnspiel

Programmverzeichnis auslesen PDF Drucken E-Mail
Share
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];

Ihren Kommentar hinzufügen

Ihr Name:
Ihre Webseite:
Betreff:
Kommentar:
  Bild, welches den Sicherheitscode enthält
Sicherheitscode:
LAST_UPDATED2