https://zhgchg.li/contact/ #8
Replies: 3 comments 1 reply
-
您好!我运行了您写的demo,发现有两个问题。当页面嵌套UIScrollView时,上滑感觉有点不流畅,另外如果下拉关闭取消后,UIScrollView会有明显抖动。有空帮忙看下这两个问题吗?谢谢 |
Beta Was this translation helpful? Give feedback.
-
func addCookiesWithDomain(cookies: [HTTPCookie?], block: @escaping () -> Void) {
您好,我前段时间遇到一个问题,就是给webview设置cookie的时候,发现设置完cookie并不能保证在发起请求的时候会带上cookie,我们在线上发现一些用户出现cookie在请求的时候并没有生效,但大部分用户都是ok的,请问这种情况我该如何解决呢? |
Beta Was this translation helpful? Give feedback.
-
func addCookiesWithDomain(cookies: [HTTPCookie?], block: @escaping () -> Void) {
let newCookies = cookies.compactMap({ $0 })
if newCookies.isEmpty {
block()
return
}
let cookieStore = config?.websiteDataStore.httpCookieStore
let group = DispatchGroup()
for cookie in newCookies {
group.enter()
cookieStore?.setCookie(cookie) {
group.leave()
}
}
group.notify(queue: .main) {
block()
}
} 您好,我前段时间遇到一个问题,就是给webview设置cookie的时候,发现设置完cookie并不能保证在发起请求的时候会带上cookie,我们在线上发现一些用户出现cookie在请求的时候并没有生效,但大部分用户都是ok的,请问这种情况我该如何解决呢? |
Beta Was this translation helpful? Give feedback.
-
https://zhgchg.li/contact/
About Me My Real Life
https://zhgchg.li/contact/
Beta Was this translation helpful? Give feedback.
All reactions