我知道我可以通过mainBundle NSDictionary找到捆绑版本
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleVersionKey];
Run Code Online (Sandbox Code Playgroud)
这不会给我完整的版本.如何通过CFBundleShortVersionString密钥访问对象?
我想你可以这样做:
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
Run Code Online (Sandbox Code Playgroud)
你不仅限于konstants!
| 归档时间: |
|
| 查看次数: |
420 次 |
| 最近记录: |