I have a situation where on a click of a button, I want to animate a tableView from bottom, I tried using CustomActionSheet sample , but I felt it very complicated .Please tell me the possible ways in which we can do it.
Asked
Active
Viewed 141 times
0

Inder Kumar Rathore
- 39,458
- 17
- 135
- 184

Ranjit
- 4,576
- 11
- 62
- 121
-
it's not a custom action sheet. The project is animating a view from bottom to the mid of screen. – Inder Kumar Rathore Jan 21 '13 at 13:49
-
And there is nothing which is complicated just try to understand. This sample is the simplest you can ever find in your entire life. I request you to give some time to it rather than just finding the exact solution to your problem. You have to manipulate this code according to your needs. – Inder Kumar Rathore Jan 21 '13 at 13:51
-
Hi,@InderKumarRathore, I used that code, Now what I have done is, instead of just a UIView, I have a UITableView, with custom Cell, which contains an image, and I want to update that image on the cells based on some conditions, So, I used [tableView reloadData] on ViewWillAppear, but the table is not refreshing.Can you tell me what is goin wrong – Ranjit Jan 21 '13 at 13:55
-
I can imagine your code but it can be due to two reasons either your table view is not visible or `tableView` is `nil`. – Inder Kumar Rathore Jan 21 '13 at 14:03
-
@InderKumarRathore, no, I have implemented themes, in my app, so when I change theme and then open this Table, the image icons on each cell should get change according to theme, but thats not happening. – Ranjit Jan 21 '13 at 14:09
-
Sorry can't imagine your code. – Inder Kumar Rathore Jan 21 '13 at 14:16
-
Hi @InderKumarRathore, can you try it out, a simple test case where the table cell images should get refreshed – Ranjit Jan 22 '13 at 05:57
-
let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/23130/discussion-between-ranjit-and-inder-kumar-rathore) – Ranjit Jan 22 '13 at 06:52
1 Answers
0
First of all set your table view's fram out side the view and then add as subview After that give animation by changing frame like .....
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)];
}];
Hope it will help you

Nirav Gadhiya
- 6,342
- 2
- 37
- 76