How can I flip a UITableView?
- by Sheehan Alam
I am trying to flip a UITableViewController but I don't think I am doing it properly:
LeaderBoardTableViewController* leaderBoardView = [[[LeaderBoardTableViewController alloc] initWithNibName:@"LeaderBoardTableViewController" bundle:nil]autorelease];
//[self.navigationController pushViewController:leaderBoardView animated:YES];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight
forView:[self view]
cache:YES];
[self.view addSubview:leaderBoardView];
[UIView commitAnimations];
I believe the culprit is in the line:
[self.view addSubview:leaderBoardView];
But am not sure how to resolve.