开发者

How to get App Identifier within code in Cocoa Framework

开发者 https://www.devze.com 2023-03-20 21:44 出处:网络
I want to get an App Identifier within code in 开发者_开发知识库Cocoa Framework Is have any method return App Identifier ?I think the best approach is to simply do:

I want to get an App Identifier within code in 开发者_开发知识库Cocoa Framework

Is have any method return App Identifier ?


I think the best approach is to simply do:

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

It might internally fetch the key from the dictionary, but looks much cleaner.

0

精彩评论

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