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];
精彩评论