Skip to content
Snippets Groups Projects
Select Git revision
  • 4745b9421154feedbc77c0187354bbedd56e3ba1
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

SplitViewController.mm

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    SplitViewController.mm 1.50 KiB
    //
    //  SplitViewController.m
    //  Onelab
    //
    //  Created by Maxime Graulich on 05/08/13.
    //  Copyright (c) 2013 Maxime Graulich. All rights reserved.
    //
    
    #import "SplitViewController.h"
    
    @interface SplitViewController ()
    
    @end
    
    @implementation SplitViewController
    	 
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
    {
        self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
        if (self) {
            // Custom initialization
        }
        return self;
    }
    
    - (void)viewDidLoad
    {
        [super viewDidLoad];
    	// Do any additional setup after loading the view.
    	UINavigationController *right = [self.viewControllers objectAtIndex:1]; // right UINavigationController (Detail)
        for(UIViewController *v in right.viewControllers){
            if ([v isKindOfClass:[ModelViewController class]]) {
                modelViewController = (ModelViewController *)v;
            }
        }
        UINavigationController *left = [self.viewControllers objectAtIndex:0]; // left UINavigationController (Master)
    	 for(UIViewController *v in left.viewControllers){
    		 if ([v isKindOfClass:[ParametersViewController class]]) {
    				parametersViewController = (ParametersViewController *)v;
    		 }
    	 }
    	self.delegate = modelViewController;
    	[self setPresentsWithGesture:NO];
    }
    
    -(void)viewDidAppear:(BOOL)animated
    {
    	modelViewController.initialModel = self.initialModel;
    	[super viewDidAppear:animated];
    }
    
    - (void)didReceiveMemoryWarning
    {
        [super didReceiveMemoryWarning];
        // Dispose of any resources that can be recreated.
    }
    
    @end