HomeHubUpdateGuideViewController.m 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // HomeHubUpdateGuideViewController.m
  3. // OneCable
  4. //
  5. // Created by nComz on 2017. 5. 11..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import "HomeHubUpdateGuideViewController.h"
  9. #import "HomeHubUpdateStartViewController.h"
  10. @interface HomeHubUpdateGuideViewController ()
  11. @end
  12. @implementation HomeHubUpdateGuideViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
  16. statusBar.backgroundColor = [UIColor whiteColor];
  17. [self.navigationController.navigationBar setHidden:YES];
  18. self.navigationController.interactivePopGestureRecognizer.enabled = NO;
  19. }
  20. - (void)operationComplite {
  21. NSLog(@"update guide operation complite");
  22. if (_closeWhenOperationComplite)
  23. [self btnCancelTouched:nil];
  24. }
  25. - (IBAction)btnConfirmTouched:(id)sender {
  26. HomeHubUpdateStartViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"HomeHubUpdateStartViewController" storyboardName:@"HomeHub"];
  27. vc.updateType = _updateType;
  28. vc.hubInfo = _hubInfo;
  29. [self.navigationController pushViewController:vc animated:YES];
  30. }
  31. - (IBAction)btnCancelTouched:(id)sender {
  32. if (_closeWhenOperationComplite)
  33. [self dismissViewControllerAnimated:YES completion:nil];
  34. else
  35. [self.navigationController popViewControllerAnimated:YES];
  36. }
  37. - (void)didReceiveMemoryWarning {
  38. [super didReceiveMemoryWarning];
  39. }
  40. @end