Skip to content
Snippets Groups Projects
Commit 9cb8e6f1 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

1.0.3

parent f13de93b
No related branches found
No related tags found
No related merge requests found
This directory contains the source code for Onelab/Mobile, the mobile version of
Onelab for iOS and Android devices.
Version: 1.0.2
Version: 1.0.3
Copyright (C) 2014 Christophe Geuzaine and Maxime Graulich, University of Liege
......
This diff is collapsed.
......@@ -35,11 +35,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.2</string>
<string>1.0.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.2</string>
<string>1.0.3</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIFileSharingEnabled</key>
......
......@@ -4,8 +4,8 @@
#import "ModelViewController.h"
@interface SplitViewController : UISplitViewController{
ModelViewController *modelViewController;
ParametersViewController *parametersViewController;
ModelViewController *modelViewController;
ParametersViewController *parametersViewController;
}
@property (nonatomic, retain) NSString *initialModel;
......
......@@ -5,46 +5,46 @@
@end
@implementation SplitViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
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;
}
[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;
}
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];
}
self.delegate = modelViewController;
[self setPresentsWithGesture:NO];
}
-(void)viewDidAppear:(BOOL)animated
{
modelViewController.initialModel = self.initialModel;
[super viewDidAppear:animated];
modelViewController.initialModel = self.initialModel;
[super viewDidAppear:animated];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment