最新版本 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
关于Xcode9.x运行后,模拟器显示一片黑问题
解决:点击View Controller,在右侧工具栏View Controller 勾选Is Initial View Controller即可。
解决:点击View Controller,在右侧工具栏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
天气图标地址:https://github.com/AndroidEngineerChenXiaoshuang/WeatherIcon.git
我的仓库里里面还有Android仿微信长按录制视频,短按拍照的项目,可以集成到你的应用上面
轻松实现功能,记得start!
我的仓库里里面还有Android仿微信长按录制视频,短按拍照的项目,可以集成到你的应用上面
轻松实现功能,记得start!
2017-12-25
在最新的Xcode中,8.0版本,直接把image拖入到左边,然后在attribute中选择图片,虽然预览时可以看到,但是模拟器中看不到。需要将图片全部导入到Assets.xcassets中,然后再选择就可以了。、
2017-07-22
xcode8.3, swift3.0+ 环境需要做如下步骤才可以看到信息
1. ios app访问需要https,修改Info.plist 添加几个属性 就可以使用http访问网络
方法参考 https://segmentfault.com/a/1190000003852877 其中点xcode7.1 设置
... 有字数限制,全部解决方法 参看 csdn blog
http://blog.csdn.net/shrimpcolo/article/details/73532776
1. ios app访问需要https,修改Info.plist 添加几个属性 就可以使用http访问网络
方法参考 https://segmentfault.com/a/1190000003852877 其中点xcode7.1 设置
... 有字数限制,全部解决方法 参看 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已经弃用了,现在是用AFHTTPSessionManager
2017-02-26