ios開發APP必須要瞭解的基本配置

來源:互聯網
上載者:User

標籤: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必須要瞭解的基本配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.