首页 > 移动平台 > 详细

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

时间:2016-06-14 16:06:17      阅读:219      评论:0      收藏:0      [点我收藏+]

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"

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

原文:http://www.cnblogs.com/proginn/p/5584196.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!