標籤:appstore message function 杭州 正式版
1,配置開發版本
650) this.width=650;" src="http://img.mp.itc.cn/upload/20160614/8e616f5504ec4a8db00671d542172b51_th.png" style="border:0px;margin:0px;padding:0px;font-size:0px;" alt="8e616f5504ec4a8db00671d542172b51_th.png" />
AdHoc開發版,AppStore正式版
2,oc的宏轉swift
//常量=》ObjectC宏
letLoadingTip="載入中..."
letiOS8:Float=8.0
letScreenHeight =UIScreen.mainScreen().bounds.size.height
letPanWidth:CGFloat=100
3,日誌輸出
一,配置
650) this.width=650;" src="http://img.mp.itc.cn/upload/20160614/f7c74e5825824fcbbeba165cfabc6f76_th.png" style="border:0px;margin:0px;padding:0px;font-size:0px;" alt="f7c74e5825824fcbbeba165cfabc6f76_th.png" />
二,杭州APP開發定義方法
funcFxLog(message:String, function:String=__FUNCTION__)
{
#ifDEBUG
print("Log:\(message),\(function)")
#else
#endif
}
funcisiPhone5()->Bool
{
#ifos(iOS)
FxLog("iOS")
#else
#endif
ifScreenHeight==568{
returntrue
}
returnfalse
}
#if buildAppStore
#endif
funcServerAddress()->String
{
varaddress ="http://172.16.19.18"
#ifAppStore
address ="http://www.uber.com"
#endif
returnaddress
}
letYLTnURL ="http://202.101.25.178:8080/sim/gettn"
本文出自 “程式員隨想錄” 部落格,請務必保留此出處http://cxykz.blog.51cto.com/11696626/1789114
ios開發APP必須要瞭解的基本配置