开发者

How to get AppID on iPhone using SDK/programmatically?

开发者 https://www.devze.com 2022-12-09 11:43 出处:网络
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.

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

精彩评论

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

关注公众号