我在视图中有一个 UIScrollView
。同时,我也有一个包含图片的数组,现在我想在滚动视图中显示这些图片。由于我是新手,如果有人能帮助我,我将非常高兴。
NSMutableArray *images = [[NSMutableArray alloc ] init];
for (int i = 0; i < 10; i++)
{
NSString *getImagePath = [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"%d/%d.png",b, i]];
UIImage *img = [UIImage imageWithContentsOfFile:getImagePath];
[images addObject:img];
NSLog(@"%@",getImagePath);
imge.image=img;
}