ios開發APP必需要了解的基本配置

1,配置開發版本ios

  AdHoc開發版,AppStore正式版swift

  2,oc的宏轉swiftui

  //常量=》ObjectC宏日誌

  letLoadingTip="加載中..."ip

  letiOS8:Float=8.0ci

  letScreenHeight =UIScreen.mainScreen().bounds.size.height開發

  letPanWidth:CGFloat=100get

  3,日誌輸出io

  一,配置function

  二,杭州APP開發(www.proginn.com/users/hangzhou/ios/)定義方法

  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"

相關文章
相關標籤/搜索