//
//  ViewController.m
//  MCPlus
//
//  Created by KangSH on 2016. 12. 7..
//  Copyright © 2016년 KangSH. All rights reserved.
//

#import "ViewController.h"
#import "Constants.h"
#import "WebViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    
    // test code start here......
    
//    self.splash = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"splash"]];
//    [self.splash setImage:[UIImage imageNamed:@"splash"]];
    

    
    // end test
}

-(void) viewDidAppear:(BOOL)animated {
    
    // Update check.
    
    
    
    
    
    
    UINavigationController *webviewController = [self.storyboard instantiateViewControllerWithIdentifier:@"WebviewNavigationController"];
    
    
    if (webviewController) {
        
        //        WebViewController *webview = (WebViewController *)webviewController.topViewController;
        
        
        webviewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
        
        [self presentViewController:webviewController animated:YES completion:nil];
        
    }
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
