Is it possible to get app id from iOS application programmatically?
问题 Is there any way for getting appstore id from running iOS application? (For asking user to rate it and providing link to appstore.) 回答1: Use NSString* appID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"]; Updating the answer with comment by @zaheer NSBundle.mainBundle().infoDictionary?["CFBundleIdentifier"] as? NSString 回答2: Yes, it is. You can't get appstore app id (called Apple ID in iTunes Connect) offline, but you can request it using iTunes Search Api.