获取版本号

-(NSString*)version;

{

    NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];

    CFShow((__bridge CFTypeRef)(infoDictionary));

    // app版本

    NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];

    return app_Version;

}

posted @ 2016-07-04 11:27  OIMMZC  阅读(123)  评论(0编辑  收藏  举报