<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>企業通訊錄</title>
<script type="text/javascript">
function openurl(url){
window.self.location=url;
}
</script>
</head>
<style type="text/css">
html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,
fieldset,legend,input,button,textarea,select,p,blockquote,th,td,span,frame,iframe {margin:0;padding:0;}
.outbox{ margin:0; width:100%; height:1260px;}
.box02 { margin: auto auto; width:524px; height:81px; text-align:center;}
.button{ margin: 80px auto 0 auto; width:458px; height:107px;}
</style>
<body>
<div class="outbox" style="border:1px solid #dadfe3;" >
<div class="box02" style=" margin-top:300px; width:650px; height:81px"><label>
<font style="font-size: 50pt">企業通訊錄</font></label></div>
<div class="button" style="width: 666px; height: 152px" >
<p align="center"><a href="#" style=" margin-top:650px;" target="_blank"><label onclick="openurl('itms-services://?action=download-manifest&url=https://192.168.1.126:8088/netcrm/ucab.plist');">
<font style="font-size: 40pt">iOS 4.0以上在線安裝</font></label></a><font style="font-size: 40pt"> </font> </div>
</div>
</body>
</html>
"openurl('itms-services://?action=download-manifest&url=https://192.168.1.126:8088/netcrm/ucab.plist');"
填寫完畢,點擊Save保存。V1.0打包完畢。生成ucab.ipa,ucab.plist兩個文件。
NSString *nsstrLocalVersion = [[NSBundle mainBundle]objectForInfoDictionaryKey:@"CFBundleVersion"];
iphone手機端升級代碼如下:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@<a href="http://192.168.1.126:8088/ucab.html">http://192.168.1.126:8088/ucab.html</a>]];