【发布时间】:2014-11-04 11:03:57
【问题描述】:
我正在尝试显示和隐藏带有动画“从左到右和从右到左的过渡”的 tableView
这我已经厌倦了,但在 CGRectMake 中使用了随机值之后,
谁能帮我解决一下
-(void)Display:(UITableView *)tableView :(UIView *)view{
tableView.alpha=1;
[UIView animateWithDuration:0.35
animations:^{
tableView.frame = CGRectMake(-209, 440, 180, 209);
}
completion:^(BOOL finished){
[tableView setHidden:YES];
}
];
}
-(void)Hide:(UITableView *)tableView :(UIView *)view :(int )tb{
tableView.alpha=1;
[tableView setHidden:NO];
[UIView animateWithDuration:.45
animations:^{
tableView.frame = CGRectMake(3, 442, 180, 209);
}
];
}
【问题讨论】:
-
请告诉我们你已经尝试过什么。
-
@Dave 我已经累了
-
@fourthnovember 你说它在上面的帖子中有效。你有什么问题?
标签: ios objective-c xcode uitableview animation