1. <tfoot id='Wy8By'></tfoot>

          <bdo id='Wy8By'></bdo><ul id='Wy8By'></ul>

      1. <legend id='Wy8By'><style id='Wy8By'><dir id='Wy8By'><q id='Wy8By'></q></dir></style></legend>
        <i id='Wy8By'><tr id='Wy8By'><dt id='Wy8By'><q id='Wy8By'><span id='Wy8By'><b id='Wy8By'><form id='Wy8By'><ins id='Wy8By'></ins><ul id='Wy8By'></ul><sub id='Wy8By'></sub></form><legend id='Wy8By'></legend><bdo id='Wy8By'><pre id='Wy8By'><center id='Wy8By'></center></pre></bdo></b><th id='Wy8By'></th></span></q></dt></tr></i><div id='Wy8By'><tfoot id='Wy8By'></tfoot><dl id='Wy8By'><fieldset id='Wy8By'></fieldset></dl></div>

        <small id='Wy8By'></small><noframes id='Wy8By'>

      2. 删除 cookie UIWebView

        时间:2023-10-22
          <i id='0QRAQ'><tr id='0QRAQ'><dt id='0QRAQ'><q id='0QRAQ'><span id='0QRAQ'><b id='0QRAQ'><form id='0QRAQ'><ins id='0QRAQ'></ins><ul id='0QRAQ'></ul><sub id='0QRAQ'></sub></form><legend id='0QRAQ'></legend><bdo id='0QRAQ'><pre id='0QRAQ'><center id='0QRAQ'></center></pre></bdo></b><th id='0QRAQ'></th></span></q></dt></tr></i><div id='0QRAQ'><tfoot id='0QRAQ'></tfoot><dl id='0QRAQ'><fieldset id='0QRAQ'></fieldset></dl></div>
          <tfoot id='0QRAQ'></tfoot>

          <small id='0QRAQ'></small><noframes id='0QRAQ'>

        • <legend id='0QRAQ'><style id='0QRAQ'><dir id='0QRAQ'><q id='0QRAQ'></q></dir></style></legend>
          • <bdo id='0QRAQ'></bdo><ul id='0QRAQ'></ul>

                    <tbody id='0QRAQ'></tbody>
                  本文介绍了删除 cookie UIWebView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在 UIWebView 中删除 cookie?这段代码:

                  How to delete cookies in UIWebView? This code:

                  NSArray* cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies];
                  for (NSHTTPCookie *cookie in cookies) {
                   [cookies deleteCookie:cookie];
                  }
                  

                  删除 cookie,但是当我重新启动我的应用程序时,NSHTTPCookieStorage 中有相同的 cookie.有时这段代码有效,但我想让它每次都有效.如何解决这个问题?

                  deletes cookies but when I restart my application, there are same cookies in NSHTTPCookieStorage. Sometimes this code works, but i want to make it work everytime.How to solve this problem?

                  推荐答案

                  试试这样的:

                  NSHTTPCookieStorage* cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage];
                          NSArray* facebookCookies = [cookies cookiesForURL:
                                                      [NSURL URLWithString:@"http://login.facebook.com"]];
                          for (NSHTTPCookie* cookie in facebookCookies) {
                              [cookies deleteCookie:cookie];
                          }
                  

                  这篇关于删除 cookie UIWebView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 UIWebView 中嵌入本地图像? 下一篇:在 UIWebView 中不断丢失 php 会话 cookie

                  相关文章

                  • <bdo id='Qr68Y'></bdo><ul id='Qr68Y'></ul>

                      <legend id='Qr68Y'><style id='Qr68Y'><dir id='Qr68Y'><q id='Qr68Y'></q></dir></style></legend>
                      <tfoot id='Qr68Y'></tfoot>
                    1. <small id='Qr68Y'></small><noframes id='Qr68Y'>

                      <i id='Qr68Y'><tr id='Qr68Y'><dt id='Qr68Y'><q id='Qr68Y'><span id='Qr68Y'><b id='Qr68Y'><form id='Qr68Y'><ins id='Qr68Y'></ins><ul id='Qr68Y'></ul><sub id='Qr68Y'></sub></form><legend id='Qr68Y'></legend><bdo id='Qr68Y'><pre id='Qr68Y'><center id='Qr68Y'></center></pre></bdo></b><th id='Qr68Y'></th></span></q></dt></tr></i><div id='Qr68Y'><tfoot id='Qr68Y'></tfoot><dl id='Qr68Y'><fieldset id='Qr68Y'></fieldset></dl></div>