最新版本 get 代碼:
manager.get(url, parameters: params, progress: nil, success: { (task, responseObject) in
print(responseObject as Any)
}, failure: nil)
manager.get(url, parameters: params, progress: nil, success: { (task, responseObject) in
print(responseObject as Any)
}, failure: nil)
2018-12-28
關(guān)于Xcode9.x運行后,模擬器顯示一片黑問題
解決:點擊View Controller,在右側(cè)工具欄View Controller 勾選Is Initial View Controller即可。
解決:點擊View Controller,在右側(cè)工具欄View Controller 勾選Is Initial View Controller即可。
2018-05-05
If you are using the simulator:
Press command + shift + , in Xcode to open the scheme editor
Select the Run scheme
Go to the Options tab
Check ? Allow Location Simulation
Select a Default Location in the dropdown
Selecting None as your Default Location may have caused the problem
Press command + shift + , in Xcode to open the scheme editor
Select the Run scheme
Go to the Options tab
Check ? Allow Location Simulation
Select a Default Location in the dropdown
Selecting None as your Default Location may have caused the problem
2017-12-27
天氣圖標(biāo)地址:https://github.com/AndroidEngineerChenXiaoshuang/WeatherIcon.git
我的倉庫里里面還有Android仿微信長按錄制視頻,短按拍照的項目,可以集成到你的應(yīng)用上面
輕松實現(xiàn)功能,記得start!
我的倉庫里里面還有Android仿微信長按錄制視頻,短按拍照的項目,可以集成到你的應(yīng)用上面
輕松實現(xiàn)功能,記得start!
2017-12-25
在最新的Xcode中,8.0版本,直接把image拖入到左邊,然后在attribute中選擇圖片,雖然預(yù)覽時可以看到,但是模擬器中看不到。需要將圖片全部導(dǎo)入到Assets.xcassets中,然后再選擇就可以了。、
2017-07-22
xcode8.3, swift3.0+ 環(huán)境需要做如下步驟才可以看到信息
1. ios app訪問需要https,修改Info.plist 添加幾個屬性 就可以使用http訪問網(wǎng)絡(luò)
方法參考 https://segmentfault.com/a/1190000003852877 其中點xcode7.1 設(shè)置
... 有字?jǐn)?shù)限制,全部解決方法 參看 csdn blog
http://blog.csdn.net/shrimpcolo/article/details/73532776
1. ios app訪問需要https,修改Info.plist 添加幾個屬性 就可以使用http訪問網(wǎng)絡(luò)
方法參考 https://segmentfault.com/a/1190000003852877 其中點xcode7.1 設(shè)置
... 有字?jǐn)?shù)限制,全部解決方法 參看 csdn blog
http://blog.csdn.net/shrimpcolo/article/details/73532776
2017-06-21
manager.get(url, parameters: params, success: { (operation:URLSessionDataTask!, responseObiect: Any!) in print("JSON:" + (responseObiect as AnyObject).description)},failure: { (operation:URLSessionDataTask?,error:Error!) in print("Error:"+error.localizedDescription)})
2017-06-03
AFHTTPrequestOerationManager在Swift3.0已經(jīng)棄用了,現(xiàn)在是用AFHTTPSessionManager
2017-02-26