URLCache.shared.removeAllCachedResponses()
URLCache.shared.diskCapacity = 0
URLCache.shared.memoryCapacity = 0
if let cookies = HTTPCookieStorage.shared.cookies {
for cookie in cookies {
HTTPCookieStorage.shared.deleteCookie(cookie)
}
}
Related Posts
[iOS] 正規表達式 (Regular Expression)
4 5 月, 2017
[iOS] App 上架流程
17 5 月, 2017