iOS 獲取appstore 版本號

2021-12-29 21:03:52 字數 706 閱讀 4672

專案上線以後一般都涉及到公升級,那麼ios 如何從appstore獲取到版本號

其實很簡單

nsstring *url = [[nsstring alloc] initwithformat:@

其中 最後一串數字就是當前app的唯一id。 這個id如何得到,百度一下 很簡單

然後我們只需要呼叫這個 位址,就會返回當前app的一些資訊,其中就包括appstore上的版本號(前提是專案已經上線到appstore)

我們把獲取的過程做了整理 大家直接使用這個方法呼叫剛才的位址就行

// 獲取appstore版本號

nsstring *url = [[nsstring alloc] initwithformat:@

[self postpath:url];

#pragma mark -- 獲取資料

-(void)postpath:(nsstring *)path

else

}else

[self performselectoronmainthread:@selector(receivedata:) withobject:receivestatusdic waituntildone:no];

}];}

-(void)receivedata:(id)sender

最後列印出來的字典中就包含 版本號

receivedata=

iOS 獲取appstore 版本

事實上非常easy id 987953868 id 987953868 self postpath url pragma mark 獲取資料 void postpath nsstring path else else self performselectoronmainthread selector...

iOS 獲取App Store上的 ipa包

方法一 使用未越獄的手機獲取 在ios8之前使用itools等可以直接匯出ipa包,但是ios9之後就不能了。方法二 通過越獄裝置獲取 3.3 所有裝置 選中當前iphone 新增應用,找到您想要ipa的那個應用 新增 3.7 拿到包後,想怎麼搞就怎麼搞!方法四 使用電腦獲取 查資料得到,未測試 4...

IOS 獲取當前版本資訊

nsdictionary infodictionary nsbundle mainbundle infodictionary cfshow infodictionary 手機序列號 nsstring identifiernumber uidevice currentdevice uniqueiden...