在我执行 slide 方法后, UIView 上的按钮在调用该方法后停止工作。
对可能发生的事情有任何想法吗?
@implementation ResultSliderView
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
self.frame = CGRectMake(10,255,0,0);
}
return self;
}
/*
This method slides the view up by animating
*/
-(void)slideUp{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.5];
[UIView setAnimationCurve:UIViewAnimationOptionAllowUserInteraction];
self.frame = CGRectMake(5,38,0,0);
[UIView commitAnimations];
}