我有点击它会起到动画的时候,我想重复使用相同的代码,使多个对象一个UIImageView对象。 如何设置发件人标签,所以它知道它的不同的对象?
。H
- (IBAction)startClick:(id)sender;
.M
- (IBAction)startClick:(id)sender
{
//UIImageView *theButton = (UIImageView *)sender.tag;
bubble.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed: @"Pop_1.png"],
[UIImage imageNamed: @"Pop_2.png"],
[UIImage imageNamed: @"Pop_3.png"], nil];
[bubble setAnimationRepeatCount:1];
bubble.animationDuration = 1;
[bubble startAnimating];
}