i when i compile th开发者_开发技巧e project a .app application is created. and it is same name as the project name by default.
how to get that name programmaticaly ?
NSDictionary *d = [NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"]];
NSString *s = [d objectForKey:@"CFBundleExecutable"];
NSLog(@"d: %@", s);
精彩评论