viral
viral

Reputation: 4208

How [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]; works?

How the following works?

[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];  

From where i can set the value for this?

Thanks.

Upvotes: 2

Views: 6524

Answers (1)

Aidan Steele
Aidan Steele

Reputation: 11330

The value for this is derived from your application's root Info.plist file. Newer versions of Xcode pretty-print this key as "Bundle version".

Upvotes: 3

Related Questions