gpt4 book ai didi

ios - NSHTTPCookie : loop through all keys

转载 作者:行者123 更新时间:2023-11-29 03:25:37 25 4
gpt4 key购买 nike

我有一个包含以下内容的 NSHTTPCookie 对象:

<NSHTTPCookie version:0 name:"laravel_session" value:"sdffds" expiresDate:2013-12-10 09:13:21 +0000 created:2013-12-10 07:13:22 +0000 (4.08352e+08) sessionOnly:FALSE domain:"test.domain.com" path:"/" isSecure:FALSE> apns_token:(null)>

我可以使用单个元素

[cookie valueForKey:@"domain"]

如何遍历所有键?

最佳答案

尝试使用:

for (id key in cookie.properties.allKeys) {
NSLog(@"%@", [cookie.properties objectForKey:key]);
}

关于ios - NSHTTPCookie : loop through all keys,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20488595/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com