我試圖從下面的JSON文件中獲取tvrage_name。AFNetworking valueForKeyPath通配符
{
data: {
Band of Brothers: {
air_by_date: 0,
cache: {
banner: 1,
poster: 1
},
language: "en",
network: "HBO",
next_ep_airdate: "",
paused: 0,
quality: "Any",
status: "Ended",
tvdbid: 74205,
tvrage_id: 2708,
tvrage_name: "Band of Brothers"
},
Breaking Bad: {
air_by_date: 0,
cache: {
banner: 1,
poster: 1
},
language: "en",
network: "AMC",
next_ep_airdate: "2013-07-14",
paused: 0,
quality: "HD",
status: "Continuing",
tvdbid: 81189,
tvrage_id: 18164,
tvrage_name: "Breaking Bad"
},
},
message: "",
result: "success"
}
有沒有辦法在valueForKeyPath中有通配符? 所以valueForKeyPath將是:數據* tvrage_name(將*將是通配符)
是這並獲得成功。非常感謝你! – 2013-03-04 16:03:01
好。請記住將問題設置爲已回答。乾杯。 – jlmendezbonini 2013-03-04 16:19:59