如何重用此按钮而不是创建按钮
CGRect frame = tenBtn.frame;
CGRect frame1 = reffButton.frame;
frame.origin.x = frame1.origin.x; // new x coordinate
frame.origin.y = frame1.origin.y; // new y coordinate
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration: 3.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
tenBtn.frame = frame;
[UIView animateWithDuration:3.0 animations:^
{
[tenBtn setTransform:CGAffineTransformMakeScale(.4, .4)];
}completion:^(BOOL finished) {
tenBtn.hidden = YES;
}];
[UIView commitAnimations];
我希望按钮(tenBtn)移动它们的原始位置或框架,而不是在我单击重新启动按钮时创建