ViewController.m 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // ViewController.m
  3. // MCPlus
  4. //
  5. // Created by KangSH on 2016. 12. 7..
  6. // Copyright © 2016년 KangSH. All rights reserved.
  7. //
  8. #import "ViewController.h"
  9. #import "Constants.h"
  10. #import "WebViewController.h"
  11. @interface ViewController ()
  12. @end
  13. @implementation ViewController
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. // Do any additional setup after loading the view, typically from a nib.
  17. // test code start here......
  18. // self.splash = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"splash"]];
  19. // [self.splash setImage:[UIImage imageNamed:@"splash"]];
  20. // end test
  21. }
  22. -(void) viewDidAppear:(BOOL)animated {
  23. // Update check.
  24. UINavigationController *webviewController = [self.storyboard instantiateViewControllerWithIdentifier:@"WebviewNavigationController"];
  25. if (webviewController) {
  26. // WebViewController *webview = (WebViewController *)webviewController.topViewController;
  27. webviewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
  28. [self presentViewController:webviewController animated:YES completion:nil];
  29. }
  30. }
  31. - (void)didReceiveMemoryWarning {
  32. [super didReceiveMemoryWarning];
  33. // Dispose of any resources that can be recreated.
  34. }
  35. @end