Note that there are some explanatory texts on larger screens.

plurals
  1. POSplitView navigation issue in ipad
    primarykey
    data
    text
    <p>i implemented a split view in my app. When my app launch it shows fine.</p> <p><strong>masterview=Leftside view &amp; detailView = Home view</strong></p> <p>But my master view also contains 2 Table view. when i clicked the any row of table view, the <strong>detail view(Now, class view) is not get display</strong>.</p> <p>Mean i want to disply display mutiple detail view as per master view's table row selected.</p> <p>my code for split view is as follow:</p> <pre><code>// AppDelegate.h - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { LeftViewController *masterViewController = [[LeftViewController alloc] initWithNibName:@"LeftViewController_iPad" bundle:nil] ; UINavigationController *masterNavigationController = [[UINavigationController alloc] initWithRootViewController:masterViewController] ; HomeViewController *detailViewController = [[HomeViewController alloc] initWithNibName:@"HomeViewController_iPad" bundle:nil]; UINavigationController *detailNavigationController = [[UINavigationController alloc] initWithRootViewController:detailViewController]; masterViewController.home_Detail = detailViewController; self.splitViewController = [[UISplitViewController alloc] init] ; self.splitViewController.delegate = detailViewController; self.splitViewController.viewControllers=[NSArray arrayWithObjects:masterNavigationController,detailNavigationController, nil]; self.window.rootViewController = self.splitViewController; [self.window makeKeyAndVisible]; } //LeftView.m -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [self.appDelegate.splitViewController viewWillDisappear:YES]; NSMutableArray *viewControllerArray=[[NSMutableArray alloc] initWithArray:[[self.appDelegate.splitViewController.viewControllers objectAtIndex:1] viewControllers]]; [viewControllerArray removeAllObjects]; if (tableView==tbl_class) { self.class_VC=[[Class_Vice_ViewController alloc]initWithNibName:@"Class_Vice_ViewController" bundle:nil]; [[NSUserDefaults standardUserDefaults]setInteger:[[[classNames objectAtIndex:indexPath.row]valueForKey:@"class_id"]intValue] forKey:@"psel_class"]; NSLog(@"%d",[[[classNames objectAtIndex:indexPath.row]valueForKey:@"class_id"]intValue]); [viewControllerArray addObject:self.class_VC]; self.appDelegate.splitViewController.delegate = self.class_VC; [[self.appDelegate.splitViewController.viewControllers objectAtIndex:1] setViewControllers:viewControllerArray animated:NO]; [class_VC viewWillAppear:YES]; } } </code></pre> <p><strong>Help me to Solve this issue</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload