I want to show UIView after clicking the button with the animation, I can show the view, but I can not hide it again by clicking this button. Here is my code to show / hide the view. Show UIView:
sliderView.frame = CGRectMake(130, 20, 0, 0); [UIView animateWithDuration:0.25 animations:^{ sliderView.frame = CGRectMake(130, 30, 100, 200); }];
Hide UIView:
[UIView animateWithDuration:0.25 animations:^{ sliderView.frame = CGRectMake(130, 30, 0, 0); }]
Using the above code is displayed with animation, but not hidden. Does anyone know how to hide it, please help, thanks
ios objective-c uiview uiviewanimation
user2586519
source share