开发者

how to get .app filename programmatically?

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜