Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
iOS下的UIWebView是否继承了Safari的隐私浏览模式设置?
我在移动 safari 中遇到了 sessionStorage 和私有模式的问题,我正在尝试评估在将页面拉入 UIWebView 时是否会遇到类似的问题。
是的 UIWebView 默认有隐私浏览模式。Cookie 数据只能由应用程序访问。NSHTTPCookie 的单例实例存储了 UIWebView 的 Cookie 信息。您可能需要使用deleteCookie:方法来清除缓存的数据。
deleteCookie: