HomeHubConnectWifiViewController.m 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // HomeHubConnectWifiViewController.m
  3. // OneCable
  4. //
  5. // Created by nComz on 2017. 5. 11..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import "HomeHubConnectWifiViewController.h"
  9. #import "HomeHubWifiSearchViewController.h"
  10. @interface HomeHubConnectWifiViewController ()
  11. @end
  12. @implementation HomeHubConnectWifiViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. [self initUI];
  16. [self prepareViewDidLoad];
  17. }
  18. - (void)didReceiveMemoryWarning {
  19. [super didReceiveMemoryWarning];
  20. }
  21. - (void)initUI {
  22. _lbTitle.text = @"선택하신 홈허브에\n등록된 Wi-Fi정보가 없습니다.";
  23. _lblSSID.hidden = YES;
  24. }
  25. - (void)prepareViewDidLoad {
  26. }
  27. #pragma mark - ble delegate
  28. - (void)BLEWiFiSSIDUpdate:(NSString *)ssid {
  29. _lbTitle.text = @"선택하신 홈허브에\n현재 연결된 Wi-Fi입니다.";
  30. _lblSSID.text = [NSString stringWithFormat:@"SSID : %@", ssid];
  31. _lblSSID.hidden = NO;
  32. }
  33. #pragma mark - User Event
  34. - (IBAction)btnNextTouched:(id)sender {
  35. HomeHubWifiSearchViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"HomeHubWifiSearchViewController" storyboardName:@"HomeHub"];
  36. [self.navigationController pushViewController:vc animated:YES];
  37. }
  38. - (IBAction)btnAgainSearchTouched:(id)sender {
  39. UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"HomeHubSearchViewController" storyboardName:@"HomeHub"];
  40. [self.navigationController pushViewController:vc animated:YES];
  41. }
  42. - (IBAction)btnCloseTouched:(id)sender {
  43. [self.navigationController popToRootViewControllerAnimated:YES];
  44. }
  45. @end