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"
PHP是世界上最好的语言
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步