IOS - 如何在UIview中设置图像

Or9*_*400 -3 github uiimageview ios

我正在使用这个项目 IOS-Image-Swiper

我试图在视图中设置图像但没有成功.

    self.photos = [[NSMutableArray alloc] initWithObjects:
             [UIImage imageNamed:@"green.png"],
             [UIImage imageNamed:@"green.png"],
             [UIImage imageNamed:@"green.png"],
             nil];
Run Code Online (Sandbox Code Playgroud)

谢谢你的帮助.

May*_*ain 6

self.imgView.animationImages =  @[[UIImage imageNamed:@"img1.png"], [UIImage imageNamed:@"img2.png"],[UIImage imageNamed:@"img3.png"],];
Run Code Online (Sandbox Code Playgroud)