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.tableView.frame = CGRectMake(0, 490, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height);
[UIView animateWithDuration:.35
delay:0.0
options: UIViewAnimationOptionCurveEaseInOut
animations:^{
self.tableView.frame = CGRectMake(0, -20, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height);
}
completion:^(BOOL finished){
[UIView animateWithDuration:0.1 delay:0.0
options: UIViewAnimationOptionCurveEaseInOut animations:^{
self.tableView.frame = CGRectMake(0, 20, [[UIScreen mainScreen] bounds].size.width , [[UIScreen mainScreen] bounds].size.height);
} completion:^(BOOL finished){
[UIView animateWithDuration:0.1 delay:0.0
options: UIViewAnimationOptionCurveEaseInOut animations:^{
self.tableView.frame = CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height);
} completion:^(BOOL finished){
}];
}];
}];