IOS basics-UIImageView, ios-uiimageview
UIImage is to define an image, while UIImageVIew is to define a view, and then put the image in
-(Void) viewDidLoad {[super viewDidLoad]; // UIImageView * imageV = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @ "1"] highlightedImage: [UIImage imageNamed: @ "2"]; UIImageView * imageV = [[UIImageView alloc] init]; imageV. frame = CGRectMake (100,100,150,300); // sets whether to allow users to interact with the control imageV. userInteractionEnabled = YES; // sets the image rendering color imageV. tintColor = [UIColor greenColor]; NSMutableArray * arrayM = [NSMutableArray array]; for (int I = 0; I <40; I ++) {NSString * name = [NSString stringWithFormat: @ "eat _ % 02d", I]; UIImage * image = [UIImage imageNamed: name]; [arrayM addObject: image];} // sets the image animation array imageV. animationImages = arrayM; // sets the number of playbacks. imageV. animationRepeatCount = 1; // set the total playback time to imageV. animationDuration = arrayM. count * 0.08; // start playing the animation [imageV startAnimating]; [self. view addSubview: imageV];}-(void) startAnimating {NSLog (@ "% s", _ func _);}-(void) stopAnimating {NSLog (@ "% s", _ func _);}-(BOOL) isAnimating {NSLog (@ "% s", _ func __); return YES ;}