NSArray
*imgs=[NSArray arrayWithObjects:[UIImage
imageNamed:@"run1.tiff"],
[UIImage imageNamed:@"run2.tiff"],
[UIImage imageNamed:@"run3.tiff"],
[UIImage imageNamed:@"run4.tiff"],
[UIImage imageNamed:@"run5.tiff"],
[UIImage imageNamed:@"run6.tiff"], nil]; //为车
imageView 配动态图
imgView.animationImages = imgs;
imgView.animationDuration = 1;
[self addSubview:imgView];
[imgView startAnimating];
[imgView release];
}
return self;
}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[allPoints removeAllObjects];
UITouch *touch = [touches anyObject];
CGPoint previouPoint = [touch locationInView:self];
[allPoints addObject:[NSValue valueWithCGPoint:previouPoint]];
}
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
找软件资料,就到一览软件文库