alamofire语法已经变化 3.1.5版本
来源:互联网 发布:淘宝中的延长收货 编辑:程序博客网 时间:2024/03/29 09:30
先安装ALAMOFIRE,我选择的是 ~>3.0
CocoaPods 1.0.0.beta.2 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.
For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.
Analyzing dependencies
Downloading dependencies
Installing Alamofire (3.1.5)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `AlamofirePro.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total
pod installed.
ymdeMacBook-Pro:AlamofirePro ym$
Xcode下语法:
Alamofire.request(.GET,"http://www.ietaiji.com/ttttt.php", parameters: ["id":"13"])
.responseJSON { responsein
/*
print(response.request) // original URL request
print(response.response) // URL response
print(response.data) // server data
print(response.result) // result of response serialization
*/
iflet JSON = response.result.value {
print("JSON is :\(JSON)")
}
}
或者:
//可以请求数据
Alamofire.request(.GET,"http://www.ietaiji.com/ttttt.php", parameters: ["id":"13"])
.responseData { responsein
print(response.request)
print(response.response)
print(response.result)
let v = response.result.value
print(v!)
}
- alamofire语法已经变化 3.1.5版本
- HTML 5的语法变化
- Alamofire
- HTML5的语法变化
- Swift3.0语法变化
- swift3.0语法变化
- Hbase 版本变化困惑
- linux内核版本变化
- Hadoop族 版本变化
- Swift版本变化
- Hadoop版本变化
- Android各版本变化
- Swift 3.0 版本变化
- Magento1.5已经出来..等待mobile android版本.
- HTML 字型变化的语法
- DXSDK 重大版本变化记录
- php所有版本变化情况
- Framework各个版本的变化
- (转)路由器处理ARP包过程(三层转发的过程)
- 11gR2中安装完数据库软件手动建库过程
- eclipse下使用github
- 张正友标定论文翻译(1)
- VC使用GDI+绘图
- alamofire语法已经变化 3.1.5版本
- 排序算法总结
- 张正友标定论文翻译(2)
- 找出升序数组中和为给定值的两个数字
- iPhone屏幕像素 分辨率 xcode中的逻辑宽高的介绍以及strcut与class的区别
- HDU 4560解题报告
- 华为机试题:整数排序
- HDU3371 并查集与最小生成树(判断有无生成树)
- segfault at xxx rip xxx rsp xxx error 4