La *_* Ko 1 ios swift alamofire
这是我的Pod文件......
# Uncomment the next line to define a global platform for your project
platform :ios, '11.2'
target 'Karaweik' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'Alamofire'
# Pods for Karaweik
end
Run Code Online (Sandbox Code Playgroud)
我只接到电话AlamofireVersionNumber:
这是关于这个库的一个问题,但如果你添加所需的代码,它将起作用.为Alamofire添加此代码并运行:
Alamofire.request("http://api.androidhive.info/contacts/").responseData { (response) -> Void in
let responseJson = String(data : response.result.value!, encoding : String.Encoding.utf8)
print(responseJson)
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
420 次 |
| 最近记录: |