mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
37 lines
817 B
Objective-C
37 lines
817 B
Objective-C
//
|
|
// ViewController.m
|
|
// NativeExample
|
|
//
|
|
// Created by Etgar Shmueli on 31/07/2016.
|
|
// Copyright © 2016 Etgar Shmueli. All rights reserved.
|
|
//
|
|
|
|
#import "ViewController.h"
|
|
#import "GreetingViewController.h"
|
|
|
|
@interface ViewController () {
|
|
}
|
|
|
|
@end
|
|
@implementation ViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
}
|
|
|
|
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
|
GreetingViewController *vc = segue.destinationViewController;
|
|
if ([segue.identifier isEqual: @"helloSegue"]) {
|
|
vc.greeting = @"Hello!!!";
|
|
}
|
|
else if ([segue.identifier isEqual: @"worldSegue"]) {
|
|
vc.greeting = @"World!!!";
|
|
}
|
|
}
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
[super didReceiveMemoryWarning];
|
|
}
|
|
|
|
@end
|