我有名字和圖像陣列像下面的NSDictionary的NSArray和
NSArray *names = [[NSArray alloc] initWithObjects:@"naveen", @"kumar",nil];
NSArray *images = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"1.jpg"], [UIImage imageNamed:@"2.jpg"], nil];
我想創建一個字典的格式如下
list:
item 0 : naveen
1.jpg
item 1: kumar
2.jpg
我怎麼能創造這一個?請?
我不明白您的格式。你可以用JSON編寫它嗎? – dasdom 2013-03-21 08:32:27
@Naveen:你想把「item 1」作爲key,'Kumar'和'2.jpg'作爲值嗎? – 2013-03-21 08:36:24
https://www.google.co.in/search?hl=zh-CN&client=firefox-a&hs=ANc&rls=org.mozilla:en-US:official&channel=fflb&q=simple+plist&bav=on.2,or.r_qf.&bvm = bv.44158598,d.bmk&BIW = 1202&波黑= 573&微米= 1&即= UTF-8&TBM = isch&源= OG&SA = N&標籤=無線&EI = W8ZKUae5IYesrAfr4YGQBg#imgrc = jZoy6pXpdEpf0M%3A%3BVl3xb9zwub3DfM%3Bhttp%253A%252F%252Fi.stack.imgur.com %252Fz0fAm.png%3Bhttp%253A%252F%252Fstackoverflow.com%252Fquestions%252F13616206%252Fcopying-objects-from-plist-file-to-another-plist-file%3B438%3B261檢查鏈接,而不是greenday我需要item0像th – Naveen 2013-03-21 08:39:14