Ashwani K
Ashwani K

Reputation: 8000

Animation issue with UITableView and UIView

I am displaying data in UITableView, when the data is being loaded I show a UIView with wait message and when the is loaded in the table View, I remove the UIView using animation

[self.tableView reloadData];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];

[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
if(viewTemp !=nil)
{
    [viewTemp removeFromSuperview];
}
[UIView commitAnimations];

But I am facing issue while the animation is being shown the some of the rows of the table view are not shown unit the animation is over.

Can somebody tell me how to fix it.

Thanks Ashwani

Upvotes: 0

Views: 1138

Answers (1)

Alex Reynolds
Alex Reynolds

Reputation: 96984

Instead of animating the view to disappear, just set its color to [UIColor clearColor] to make it transparent.

Upvotes: 2

Related Questions