腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
Swift
4-
Alamofire
-
如何
在
请求
时
禁用
缓存
ios
、
swift
、
alamofire
我的
Alamofire
请求
是这样的: func loginUser(_ username: String, password: String, completion: @escaping (_ resultAccept": "application/json;odata=verbose", "Content-type": "application/json;odata=verbose"]
Alamofire
.requesterror.
浏览 33
提问于2020-01-14
得票数 0
7
回答
如何
在阿拉莫火中
禁用
缓存
ios
、
swift
、
caching
、
alamofire
当我用
Alamofire
发送两次GET
请求
时
,我得到了相同的响应,但我期待的是不同的响应。我想知道是不是因为
缓存
,如果是的话,我想知道
如何
禁用
它。
浏览 3
提问于2015-08-25
得票数 53
回答已采纳
2
回答
iOS
Swift
Alamofire
cachePolicy
ios
、
swift
、
alamofire
在
Alamofire
版本3中,我将NSURLRequest.CachePolicy.returnCacheDataDontLoad用于
请求
缓存
Alamofire
.request(URLRequest但是
如何
在
Alamofire
4和
sw
浏览 0
提问于2016-10-11
得票数 2
1
回答
Alamofire
缓存
问题
ios
、
swift
、
caching
、
swift3
、
alamofire
我遇到了一个
Alamofire
的问题,我对不同的
请求
得到了相同的响应。我使用以下方法来
请求
:当我第一次发出
请求
时
,它会按预期工作。不久之后,当我使用不同的用户名和密码再次发出
请求
时
,我从上一次
请求
中获得了响应数据。如果我重新启动应用程序或等待一段时间,
请求
就会按预期工作。我假设这是一个
缓存
问题
浏览 15
提问于2017-07-08
得票数 1
5
回答
Alamofire
无法
禁用
缓存
ios
、
swift
、
alamofire
、
nsurlcache
我无法让
Alamofire
或iOS停止
缓存
:URLCache.shared.removeAllCachedResponses()let configuration = URLSessionConfiguration.default configurati
浏览 9
提问于2017-06-15
得票数 3
回答已采纳
2
回答
如何
在阿拉莫火中实现自签名证书?
ios
、
swift
、
alamofire
但是,
Alamofire
不支持自签名证书。 是否可以轻松地实现这个特性?
如何
实现?
浏览 0
提问于2015-03-05
得票数 3
回答已采纳
3
回答
如何
在
swift
3中发出GET
请求
swift
、
api
、
rest
、
http
、
alamofire
我
在
swift
3中有一个项目,想做一个GET
请求
。然而,
Alamofire
还没有更新到
swift
3。
Alamofire
什么时候会支持
swift
3,以及
如何
在
swift
3中硬编码带有参数的GET
请求
?
浏览 0
提问于2016-06-01
得票数 1
1
回答
Alamofire
请求
在
Swift
4项目中无效
swift
、
alamofire
我试图使用
Swift
.org和
Alamofire
GitHub页面上提供的示例代码使用
Alamofire
和
Swift
触发GET
请求
。显然,
请求
没有被执行。/Foo/main.
swift
阿拉莫火
在
in Package.
swift
// The
swift
浏览 1
提问于2018-02-10
得票数 2
回答已采纳
6
回答
阿拉莫火- NSURLCache不起作用?
swift
、
nsurlcache
、
alamofire
我将
缓存
设置为var cacheSizeDisk = 100 * 1024 * 1024NSURLCache.setSharedURLCache(sharedCache) 使用
缓存
策略创建
请求
, cachePolicy: .ReturnCacheDataElseLoad, t
浏览 11
提问于2015-01-05
得票数 9
回答已采纳
1
回答
使用
Alamofire
API Rest发送空数组
json
、
swift
、
alamofire
事实上,我也
在
使用postman测试我的
请求
,这个
请求
在
postman中工作得很好(我希望wordTrads为空):这就是我
如何
使用
Alamofire
实现在
Swift
中调用的API: "wordTrads" : [],
Alamofire
.request("\(Auth.URL_API)/lists/205",method: .pa
浏览 4
提问于2018-01-21
得票数 0
回答已采纳
1
回答
驱动程序调用中的意外错误:无效的驱动程序名称:
SWIFT
_EXEC-无覆盖
swift
、
xcode
、
code-coverage
在
Xcode 13.2.1上使用脚本
时
,
Swift
编译器将返回错误:... error: Unexpected error in driver invocation: invaliddriver name:
SWI
浏览 21
提问于2022-01-09
得票数 0
回答已采纳
1
回答
无法
在
Alamofire
中
禁用
缓存
(Xcode 9-
swift
4)
swift
、
xcode
、
alamofire
我
在
调用almofire
时
使用了 answer 来
禁用
缓存
,但每次
请求
都会得到旧数据,并且tableView没有更新!var myURLRequest = URLRequest(url: myurl)
Alamofire
.request
浏览 0
提问于2017-09-27
得票数 0
2
回答
使用XML响应和正文
swift
3的SOAP
请求
,
Alamofire
ios
、
swift
、
xml-parsing
、
alamofire
我没有找到任何关于
如何
在
swift
3上发送SOAP
请求
的信息。我有一个带有XML的SOAP API。我
在
我的项目中使用
Alamofire
作为网络客户端。我的问题是
如何
在
Swift
上用XML发出SOAP
请求
,最好是用
Alamofire
库。
浏览 2
提问于2017-04-27
得票数 3
3
回答
在
Alamofire
中,编码和内容类型有什么不同?
swift
、
networking
、
alamofire
Alamofire
.request(url, method: .post, parameters: param, encoding: JSONEncoding.default, headers: [content-type: multipart/form-data]) 在
请求
头中,我看到有一个名为content的字段,它可以设置为application/json、application/x form-urlencoded但问题是,在编码param
时
,我们也可以将其设置为JSONEncoding.default。
浏览 1
提问于2018-08-14
得票数 1
1
回答
Alamofire
返回SwiftyJSON结果的快速扩展方法
ios
、
swift
、
alamofire
、
swifty-json
我将一个应用程序从
SWIFT
2.2迁移到3.0,它使用了项目
在
GitHub上的扩展方法。
Alamofire
-SwiftyJSON允许接收来自
Alamofire
网络
请求
的响应,转换为如下所示的SwiftyJSON实例: print(json) // json is a SwiftyJSON 'JSON'
浏览 3
提问于2017-01-23
得票数 2
回答已采纳
10
回答
如何
使用
Alamofire
在
swift
中加载图像
swift
、
afnetworking
、
alamofire
dispatch_async(dispatch_get_main_queue()){ }第二种方式-使用
Alamofire
(
请求
属于
Alamofire
) request(.GET,mediaUrl).response(){as NSData) }最后,
浏览 5
提问于2015-02-21
得票数 36
1
回答
如何
在应用程序离线
时
使用
Alamofire
获得
缓存
的响应?
ios
、
swift
、
caching
、
alamofire
、
nsurlrequestcachepolicy
在
我通过
Alamofire
获得response之后,
在
某些情况下,实现了、实现了数据库或管理了本地存储(文件等)可能是过高的。我知道
Alamofire
的requestCachePolicy,它已经
在
缓存
响应(基于cache-control__'s max-age__),但这更多地与减少
请求
数量/提高在线
时
的体验有关。,但是当我没有可用的
Alamofire
连接
时
,是否可以使用
缓存
的
浏览 3
提问于2017-02-25
得票数 11
1
回答
Xcode:
Alamofire
源代码中的快速Dropbox错误
ios
、
xcode
、
swift
、
cocoapods
、
alamofire
我在做这个说明: 我使用的是Xcode 7.2.1
浏览 2
提问于2016-03-28
得票数 0
回答已采纳
1
回答
如何
正确安装
Alamofire
SwiftyJSon和
Alamofire
-SwiftyJson
swift
、
alamofire
从我前面的问题中可以看出,我
在
解析JSON数据
时
遇到了很多麻烦。经过几天的头痛,我认为最好的方法仍然是使用阿拉莫火/迅捷。我还找到了阿拉莫火 但我不知道
如何
将这三个“库”安装在一起。我
在
我的项目中下载了整个
Alamofire
包,
在
我的项目中添加了SwiftyJson.
swift
,最后
在
我的项目中下载了
Alamofire
-SwiftyJson。但是,当我用"responseSwiftyJSON“更改我的
ala
浏览 4
提问于2015-02-23
得票数 3
回答已采纳
10
回答
Alamofire
Xcode 8
Swift
3导致786个编译错误
ios
、
swift
、
xcode
、
cocoapods
、
alamofire
在
我的Podfile中,我的目标是出血边缘
Swift
3分支:platform :ios, '9.0'target 'MyProject' do pod '
Alamofire
', :git => 'https://github.com/
Alamofire
&
浏览 4
提问于2016-09-08
得票数 32
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
全新Swift从入门到进阶实战探探iOS APP(高清原画)
App架构设计经验谈:技术选型
Asp.Net Core 2.1+的视图缓存
更好的缓存技术可以提高网站响应速度
HDFS 使用 RBF 注意事项
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券