U IImage is to define a picture , and Uiimageview is to define a view , and put the picture in it.
-(void) viewdidload{ [Super viewdidload];// Uiimageview *imagev = [[Uiimageview alloc] Initwith Image:[uiimage imagenamed:@ "1"] highlightedimage:[uiimage imagenamed:@ "2"]]; Uiimageview *imageV = [[ Uiimageview Alloc] init]; Imagev.frame = CGRectMake (+, +); //Set whether users are allowed to interact with the control & nbsp imagev.userinteractionenabled = yes; //Set Picture rendering color Imagev.tintcolor = [Uicolor Greencolor]; Nsmutablearray *arraym = [Nsmutablearray array]; for (int i=0; i<40; i++) { NSString *name = [NSString stringwithformat:@ "eat_%02d", i]; &NBSP ; UIImage *image = [UIImage imagenamed:name]; [Arraym addobject:image]; }&nbs P //Set Picture animation array Imagev.animationimages = arraym; //Set play times Imagev.animationrepeatcount = 1; //Set total playbackTime Imagev.animationduration = Arraym.count * 0.08; //Start play animation [IM Agev startanimating]; [Self.view Addsubview:imagev];} -(void) startanimating{ NSLog (@ "%s", __func__);} -(void) stopanimating{ NSLog (@ "%s", __func__);} -(BOOL) isanimating{ NSLog (@ "%s", __func__); return YES;}
iOS Foundation-uiimageview