#pragma mark - 关于Bundle
#pragma mark 读取plist的方法
// NSBundle *bundle = [NSBundle mainBundle];
// NSString *path = [bundle pathForResource:@"provinces_cities" ofType:@"plist"];
// NSDictionary *dictData = [[NSDictionary alloc] initWithContentsOfFile:path];
#pragma mark 从沙盒中读取程序版本号
NSBundle *mainBundle = [NSBundle mainBundle];
// 关键字key都是以k开头,这个key是bundle框架提供的key,通过这个key可以找到这个程序当前的版本
NSString *key = (NSString *)kCFBundleVersionKey;
// NSDictionary *dictData = [mainBundle infoDictionary];
// NSString *appVersion = [dictData objectForKey:key];
NSString *appVersion = [mainBundle infoDictionary][key];
#pragma mark 取出自己存储的version值
NSString *versionDefaults = [[NSUserDefaults standardUserDefaults]objectForKey:key];