How can I move a view from bottom to top on my code:
colorView.hidden=NO;
colorView=[[UIView alloc]init];
colorView.frame=CGRectMake(0,480,320, 480);
colorV
self.colorView.frame = CGRectMake(0, 490, 320, 460);
[UIView animateWithDuration:0.5
delay:0.1
options: UIViewAnimationCurveEaseIn
animations:^{
self.colorView.frame = CGRectMake(0, 0, 320, 460);
}
completion:^(BOOL finished){
}];
[self.view addSubview:self.colorView];
[UIView animateWithDuration:1.5
delay:0.5
options: UIViewAnimationCurveEaseIn
animations:^{
self.colorView.frame = CGRectMake(0, 490, 320, 460);
}
completion:^(BOOL finished){
[self.colorView removeFromSuperview];
}];