Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のような文字列があります。
"[{"ImageTagID":78,"Xpixel":408,"Ypixel":69,"Xpercent":17,"Ypercent":68,"ImageID":45617}]"
どうやってバラバラに砕くの?
ありがとう、
これは辞書です。ディクショナリにはキーと値があります。特定の値が必要な場合は、キーを使用して取得する必要があります。
iOSでは、このように行われます。
int tagID = [yourdictionary objectForKey:@"ImageTagID"];
これが開始に役立つことを願っています。さらに質問がある場合は、私に尋ねてください。
文字列の分割:
例:NSArray *stringArray = [string componentsSeparatedByString: @","];
NSArray *stringArray = [string componentsSeparatedByString: @","];