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

        Delete cookies UIWebView(删除 cookie UIWebView)
          <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  How to get indexPath.row of tableView which is currently being displayed?(如何获取当前正在显示的 tableView 的 indexPath.row?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  • <bdo id='Qr68Y'></bdo><ul id='Qr68Y'></ul>

                        <tbody id='Qr68Y'></tbody>
                          <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>