2012년 2월 16일 목요일

iOS How to get current app version

[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]
will return current your app version.

ex)
NSLog([NSString stringWithFormat:@"Version %@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]]);

How can my iphone app detect its own version number?

댓글 없음:

댓글 쓰기