How can I flip a UITableView?
Posted
by Sheehan Alam
on Stack Overflow
See other posts from Stack Overflow
or by Sheehan Alam
Published on 2010-06-10T01:19:01Z
Indexed on
2010/06/10
1:22 UTC
Read the original article
Hit count: 290
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.
© Stack Overflow or respective owner