ios-获取wkwebview里的cookie Posted on 2018-09-21 10:14 12345678910if (@available(iOS 11.0, *)) { //available on iOS 11+ WKHTTPCookieStore *cookieStore = webView.configuration.websiteDataStore.httpCookieStore; [cookieStore getAllCookies:^(NSArray* cookies) { if (cookies.count > 0) { for (NSHTTPCookie *cookie in cookies) { //TODO... } } }];}