2011-05-05 148 views
0

我有一個問題。我需要從plist中獲取圖像並將其顯示在imageview上?我的plist結構是(類別)數組 - >子類(字典),它可以是多個 - >圖像(數組)並水平滾動。請儘快提出一些答案。在imageview上顯示圖像

+0

:D ....你是否將圖像名稱保存在plist中?我想是這樣的...... – 2011-05-05 06:21:54

回答

0
- (void)getImage 
{ 
NSArray *imageArray = [NSarray arrayWithContentsOfFile:plistPath]; 
for(NSDictionary *dict in imageArray) 
{ 
UIImage *image = [UIImage imageNamed:[dict objectForKey:imageKey]]; 
} 
} 
+0

謝謝7K。但我需要更多的澄清 – 2011-05-05 06:27:20

+0

你的plist的情節是什麼? Arent這些字典與圖像名稱 – visakh7 2011-05-05 06:28:27

+0

其描述,然後圖像名稱 – 2011-05-05 09:34:54