//	应用网址 返回字典中有多种数据
NSString *urlString2 = [NSString stringWithFormat: @"%@", @"http://itunes.apple.com/lookup?id=应用ID"];

NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary];
NSString* key =[infoDict objectForKey:@"CFBundleVersion"];

//	如果有新版本 使用UIAletView显示

NSString *newVersionUrl = dic[@"trackViewUrl"];
                
[[UIAlertView alloc] initWithTitle: @"新版本可用" message: dic[@"releaseNotes"] delegate: self cancelButtonTitle: @"稍后更新" otherButtonTitles: @"立刻升级", nil] show];
posted on 2014-10-15 15:49  М80メ  阅读(133)  评论(0编辑  收藏  举报