NSString *path = [[NSBundle mainBundle] pathForResource:@"Info.plist" ofType:nil];
NSDictionary *dic = [NSDictionary dictionaryWithContentsOfFile:path];
NSLog(@"当前软件版本号为:%@",[dic objectForKey:@"CFBundleVersion"]);
NSString *path = [[NSBundle mainBundle] pathForResource:@"Info.plist" ofType:nil];
NSDictionary *dic = [NSDictionary dictionaryWithContentsOfFile:path];
NSLog(@"当前软件版本号为:%@",[dic objectForKey:@"CFBundleVersion"]);
本文标题:info中版本号的获取 和偏好设置中的信息比较
本文链接:https://www.haomeiwen.com/subject/ithplqtx.html
网友评论