检测版本号


 NSString * curentVersionStr = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString*)kCFBundleVersionKey]; //  build 号

 
 
    [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]


 
 
// version 号:

[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; 
 
    [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
 
 
 
  



// appStore 跳转

方法一

NSString *str =@"http://itunes.apple.com/cn/app/id1006513728";


     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];


方法二



猜你喜欢

转载自blog.csdn.net/heyachaodeios/article/details/50037483