电商app开发 杭州整合营销 杭州seo优化公司 水族过滤棉厂家

ios开发APP必须要了解的基本配置

1,配置开发版本

  AdHoc开发版,AppStore正式版

  2,oc的宏转swift

  //常量=》ObjectC宏

  letLoadingTip="加载中..."

  letiOS8:Float=8.0

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

  letPanWidth:CGFloat=100

  3,日志输出

  一,配置

  二,杭州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"

posted on   菜鸟php工程师  阅读(364)  评论(0编辑  收藏  举报

努力加载评论中...

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

电商app开发 杭州整合营销 杭州seo优化公司 水族过滤棉厂家
点击右上角即可分享
微信分享提示