I have splitview and it contains rootviewcontroller(uitableviewcontroller subclass) and detailview(viewcontroller subclass). Now I have the code like this in rootview(tableviewcontroller subclass).
- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (delegate != nil) {
[delegate viewchange];
}
}
and in detailviewcontroller(viewcontroller subclass at right side).
-(void)viewchange{
nextviewcontroller *nextView = [[nextviewcontroller alloc] initWithNibName:@"nextviewcontroller" bundle:nil];
[nextView.view setFrame:self.view.bounds];
[nextView setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[self presentModalViewController:nextView animated:YES];
[nextView release];
}
and navigation happens successfully by selecting the row in rootview but that nextview appears in whole screen that will hide rootview controller's view(tableview) So HOW can I show rootview on left side and navigatation only in right side whithin the size of detailview?
thanx for any help.