我想从我的应用程序的 webview cookie 中检索网站标题。
我在用:
NSHTTPCookie *cookie;
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (cookie in [storage cookies]) {
NSLog(@"%@",cookie.properties );
}
我只在字典中获取以下字段:
2012-06-20 16:29:23.763 [4936:207] {
创建 = 361882697;
域 = "www.google.com";
过期 = "2012-07-20 10:58:17 +0000";
名称 = MRES;
路径 = "/搜索";
值 = "8ec208dd70991ccb:8a123708ae27c59e:b934e635fe6c1e21";
}
我如何保存/检索网站标题例如:标题谷歌,网址:www.google.com