我有一种情况,点击一个按钮,我想从底部动画一个tableView,我尝试使用CustomActionSheet sample,但我觉得它非常复杂,.Please告诉我我们可以做的可能的方法。
发布于 2013-03-04 21:09:34
首先设置你的表视图的fram在视图之外,然后添加为子视图,然后通过改变frame如.....
CGFloat height = 100;
[yourTableView setFrame:CGRectMake(0, 480, 320, height)];
[self.view addSubview:yourTableView];
[UIView animateWithDuration:0.5 animations:^{
[yourTableView setFrame:CGRectMake(0, 480 - height, 320, 100)];
}];希望能对你有所帮助
https://stackoverflow.com/questions/14439592
复制相似问题