原文链接:http://www.cnblogs.com/LGLblog/p/5548823.html
版本号的格式:v<主版本号>.<副版本号>.<发布号>
版本号的初始值:v1.0.0
管理规则:
1. 产品的主体构件进行重大修改,主版本号加1;
2. 产品的主体构件之间的接口协议重大修改,主版本号加1。
1. 主版本号变更时,副版本号置0;
2. 数据结构变更(新增或修改注释含义的情况除外),副版本号加1;
3. 若副版本号累加至超过20时,采用主版本号进位制,主版本号加1,
副版本号重新置0。
1. 主版本号或副版本号变更时,Release号置0;
2. 若发布的版本无数据结构变更,则Release号加1。
举例说明:
在新版本推出时,应更新major、minor或是build(如有)的版号,决定于变更的大小。
当有极大的更新时,会增加major的版号。而当有大更新,但不至于更新major时,会更新minor的版号。
若更新比较小,例如只是除虫(bug fixing),则会更新build的版号。以下是一个例子:
1.0→1.0.1→1.0.2→1.1→1.1.1→2.0→2.1→2.1.1→3.0→…以上例子中,
1.0至1.0.1至1.0.2、1.1至1.1.1、2.1至2.1.1都是小更新,例如bug fixing ,界面微调等;
1.0.2至1.1、2.0至2.1都是较大的更新,例如增添了许多新的功能;
而1.1.1至2.0和2.1.1至3.0则是重大更新,例如app的界面或者功能完全发生变化。
iOS版本升级
去general中修改项目中的版本号,version和build到底是神马关系不知道,以防万一写成一样的
重点是一定要比上一个版本大
APPLE_URL :"http://itunes.apple.com/lookup?id=XXX"
如果是中国地区的程序,用这个:http://itunes.apple.com/cn/lookup?id=
从获得的 response 数据中解析需要的数据。因为从 appstore 查询得到的信息是 JSON 格式的,所以需要经过解析。解析之后得到的原始数据就是如下这个样子的:
{
resultCount = 1;
results = (
{
artistId = 301724683;
artistName = Citibank;
artistViewUrl = "http://itunes.apple.com/us/artist/citibank/id301724683?uo=4";
artworkUrl100 = "http://a5.mzstatic.com/us/r1000/117/Purple/a1/85/a9/mzl.hvwnfdkw.png";
artworkUrl512 = "http://a5.mzstatic.com/us/r1000/117/Purple/a1/85/a9/mzl.hvwnfdkw.png";
artworkUrl60 = "http://a2.mzstatic.com/us/r1000/099/Purple/67/86/7e/mzi.utfdvrgy.png";
averageUserRating = "3.5";
averageUserRatingForCurrentVersion = 5;
contentAdvisoryRating = "4+";
currency = USD;
description = "Description of you app.";
features = (
iosUniversal
);
fileSizeBytes = 4141195;
genreIds = (
6015
);
genres = (
Finance
);
ipadScreenshotUrls = (
"http://a1.mzstatic.com/us/r1000/095/Purple/e0/a6/17/mzl.pbbxcjzt.1024x1024-65.jpg",
"http://a3.mzstatic.com/us/r1000/036/Purple/cc/14/98/mzl.dyairego.1024x1024-65.jpg"
);
isGameCenterEnabled = 0;
kind = software;
languageCodesISO2A = (
EN
);
price = 0;
primaryGenreId = 6015;
primaryGenreName = Finance;
releaseDate = "2011-01-24T06:14:35Z";
releaseNotes = "* View Real-time streaming prices for U.S. Treasuries \n\n* Open and Save your Citi Research in your favorite PDF Reader and Library such as iBooks\n\n* Search for your favorite videos";
screenshotUrls = (
"http://a3.mzstatic.com/us/r1000/066/Purple/17/51/fb/mzl.zywiavgn.png",
"http://a5.mzstatic.com/us/r1000/026/Purple/73/85/97/mzl.csmdtndk.png"
);
sellerName = "Citibank, N.A.";
sellerUrl = "http://";
supportedDevices = (
all
);
trackCensoredName = "Citi Velocity";
trackContentRating = "4+";
trackId = 414697122;
trackName = "Citi Velocity";
trackViewUrl = "http://itunes.apple.com/us/app/citi-velocity/id414697122?mt=8&uo=4";
userRatingCount = 5;
userRatingCountForCurrentVersion = 1;
version = "1.4";
wrapperType = software;
}
);
}
然后从中取得 results 数组即可,具体代码如下所示:
NSDictionary *jsonData = [dataPayload JSONValue];
NSArray *infoArray = [jsonData objectForKey:@"results"];
NSDictionary *releaseInfo = [infoArray objectAtIndex:0];
NSString *latestVersion = [releaseInfo objectForKey:@"version"];
NSString *trackViewUrl = [releaseInfo objectForKey:@"trackViewUrl"];
如果你拷贝 trackViewUrl 的实际地址,然后在浏览器中打开,就会打开你的应用程序在 appstore 中的介绍页面。当然我们也可以在代码中调用 safari 来打开它。
UIApplication *application = [UIApplication sharedApplication];
[application openURL:[NSURL URLWithString:trackViewUrl]];
这是评论的地址:
在iPhone应用里直接打开app store 评论页面的方法:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=abc"]];
复制代码
更换下id号就可以。
如果想要打开下载页面,把url改为
itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=40461254
更换下id号就可以。
_---------------------__----------------------
NSString *searchQuery = @"1 Infinite Loop, Cupertino, CA 95014";
searchQuery = [addressText stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
NSString *urlString=[NSString stringWithFormat:@"http://maps.google.com/maps?q=%@", searchQuery];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlText]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://[email protected]"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms:10086"]];
NSURL *url= [NSURL URLWithString:@"http://eyecm.com"];
[[UIApplication sharedApplication] openURL:url];
NSURL *appStoreUrl= [NSURL URLWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=291586600&mt=8"];
[[UIApplication sharedApplication] openURL:appStoreUrl];
NSString *str = [NSString stringWithFormat:
@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",
m_appleID ];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];