且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在运行时以编程方式确定应用程序ID?

更新时间:2023-01-15 20:08:15

如果你的意思是你的com.whatever.whatever identification :

If you mean your com.whatever.whatever identification:

NSString *myAppID = [[NSBundle mainBundle] bundleIdentifier];

如果您的iTunes id123456789标识,则在运行时无法使用,但会提供给您在iTunes Connect上,可以从那里手动插入您的应用程序。

If you mean your iTunes id123456789 identification, it's not available to you at runtime, but is given to you on iTunes Connect and can be manually inserted into your app from there.