HomeHubUpdateCompleteViewController.m 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // HomeHubUpdateCompleteViewController.m
  3. // OneCable
  4. //
  5. // Created by nComz on 2017. 5. 11..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import "HomeHubUpdateCompleteViewController.h"
  9. @interface HomeHubUpdateCompleteViewController ()
  10. @property (weak, nonatomic) IBOutlet UILabel *lbContent;
  11. @end
  12. @implementation HomeHubUpdateCompleteViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. [self initUI];
  16. [self prepareViewDidLoad];
  17. }
  18. - (void)initUI {
  19. if (!_isUpdate) {
  20. BLEServiceHandler *bleService = [BLEServiceHandler sharedManager];
  21. if ( [bleService isConnected] &&
  22. bleService.conDevice != nil &&
  23. !EQUALS([bleService getValueFromCharacteristic:kBLEChrRdSSID], @"-") ) {
  24. _lbContent.text = [NSString stringWithFormat:@"홈허브가 %@에 연결되었습니다.", [bleService getValueFromCharacteristic:kBLEChrRdSSID]];
  25. }
  26. }
  27. }
  28. - (void)prepareViewDidLoad {
  29. }
  30. - (void)didReceiveMemoryWarning {
  31. [super didReceiveMemoryWarning];
  32. }
  33. - (IBAction)btnConfirmTouched:(id)sender {
  34. UIViewController *vc = vc = [CommonUtil instantiateViewControllerWithIdentifier:@"HomeHubViewController" storyboardName:@"Main"];
  35. //멀티 홈허브일때
  36. if ([[JDFacade facade].loginUser isMultiHomeHub]) {
  37. vc = [CommonUtil instantiateViewControllerWithIdentifier:@"MultiHomeHubViewController" storyboardName:@"Main"];
  38. }
  39. [self.navigationController popToRootViewControllerAnimated:YES];
  40. // UINavigationController *m_navi =[[UINavigationController alloc]initWithRootViewController:vc];
  41. // [self presentViewController:m_navi animated:YES completion:nil];
  42. }
  43. @end