您的位置:首页 > 移动开发

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

2016-06-18 13:54 447 查看
1,配置开发版本

  AdHoc开发版,AppStore正式版  2,oc的宏转swift  //常量=》ObjectC宏  letLoadingTip="加载中..."  letiOS8:Float=8.0  letScreenHeight =UIScreen.mainScreen().bounds.size.height  letPanWidth:CGFloat=100  3,日志输出  一,配置

  二,定义方法  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"

程序员杭州软件测试杭州APP开发杭州PHP工程师
本文出自 “先来一杯java压压惊” 博客,请务必保留此出处http://maybeone.blog.51cto.com/11734094/1790569
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: