36 lines
942 B
Objective-C
36 lines
942 B
Objective-C
//
|
|
// ViewController.m
|
|
// FMC Planner 2
|
|
//
|
|
// Created by Kilian Hofmann on 19.03.16.
|
|
// Copyright © 2016 Kilian Hofmann. All rights reserved.
|
|
//
|
|
|
|
#import "ViewController.h"
|
|
|
|
@implementation ViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view, typically from a nib.
|
|
// Round corners
|
|
_backdropKeys.layer.cornerRadius = 5;
|
|
_backdropKeys.layer.masksToBounds = YES;
|
|
_backdropScreen.layer.cornerRadius = 5;
|
|
_backdropScreen.layer.masksToBounds = YES;
|
|
}
|
|
|
|
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
|
NSString *segueName = segue.identifier;
|
|
if ([segueName isEqualToString:@"keyboard"]) {
|
|
_keys = (ViewControllerKeyboard *)[segue destinationViewController];
|
|
_keys.main = self;
|
|
}
|
|
if ([segueName isEqualToString:@"screen"]) {
|
|
_screen = (ViewControllerScreen *)[segue destinationViewController];
|
|
_screen.main = self;
|
|
}
|
|
}
|
|
|
|
@end
|