开发者

How to get AppID on iPhone using SDK/programmatically?

I want to send the AppID as a HTTP URL parameter for all web-service requests, but I开发者_开发技巧 do not know how to get the AppID on iPhone programmatically. Does Apple provide any API to obtain the AppID?


I think it may be possible to access it in a different way, but you should be able to read it from your info.plist:

NSString* appID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];


NSString *appID = [[NSBundle mainBundle] bundleIdentifier];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜