开发者

show image on imageview

开发者 https://www.devze.com 2023-03-02 18:56 出处:网络
开发者_C百科i have one problem. i need to get the images from plist and show it on the imageview? my plist structure is (category)array--> sub category(dictionary) which can be more than one--> images
开发者_C百科

i have one problem. i need to get the images from plist and show it on the imageview? my plist structure is (category)array--> sub category(dictionary) which can be more than one--> images (array) and scroll in horizontally. please suggest some answer as soon as possible.


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

精彩评论

暂无评论...
验证码 换一张
取 消