I have a tabbar app that is using a UITableView in one of the tabs. When the user selects one of the rows I want a new view to show up.
I am not currently using a Navigation bar as there is already plenty of competition for screen real estate in that view.
I have the following code
- (void)tableView
UITableView *)tableView didSelectRowAtIndexPath
NSIndexPath *)indexPath {
NSLog(@"IN HERE!!!!");
NSLog(@"indexPathSection=%d", indexPath.section);
NSLog(@"indexPathRow=%d", indexPath.row);
ViewWithFurtherDetail *detailViewController = [[ViewWithFurtherDetail alloc] initWithNibName
"ViewWithFurtherDetail" bundle:nil];
[self presentModalViewController:detailViewController animated:YES];
[detailViewController release];
}
This works but it animates up from the bottom rather from the right.
Two questions.
1. How do I get this to animate from the right?
2. How do I 'get back' to the UITableView view once the new view is established? I'm probably going to have a small button with title 'back' which the user can press but what is the actual code required to return to the previous view?
I am not currently using a Navigation bar as there is already plenty of competition for screen real estate in that view.
I have the following code
- (void)tableView
NSLog(@"IN HERE!!!!");
NSLog(@"indexPathSection=%d", indexPath.section);
NSLog(@"indexPathRow=%d", indexPath.row);
ViewWithFurtherDetail *detailViewController = [[ViewWithFurtherDetail alloc] initWithNibName
[self presentModalViewController:detailViewController animated:YES];
[detailViewController release];
}
This works but it animates up from the bottom rather from the right.
Two questions.
1. How do I get this to animate from the right?
2. How do I 'get back' to the UITableView view once the new view is established? I'm probably going to have a small button with title 'back' which the user can press but what is the actual code required to return to the previous view?