MultiHomeHubViewController.m 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // MultiHomeHubViewController.m
  3. // OneCable
  4. //
  5. // Created by nComz on 2017. 5. 11..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import "MultiHomeHubViewController.h"
  9. #import "RequestHandler.h"
  10. #import "DeviceModel.h"
  11. #import "CustomTableView.h"
  12. #import "CustomButton.h"
  13. #import "Reachability.h"
  14. /**
  15. 네트워크, 동글 On / Off 이미지
  16. On : img_homehub_list_connect
  17. Off : img_homehub_list_notconnect
  18. 업데이트 On / Off 이미지
  19. On : img_homehub_list_update_on
  20. Off : img_homehub_list_update_off
  21. **/
  22. @interface MultiHomeHubViewController ()
  23. @end
  24. @implementation MultiHomeHubTableViewCell
  25. - (void)didMoveToSuperview {
  26. // [self layoutIfNeeded];
  27. }
  28. @end
  29. @implementation MultiHomeHubViewController
  30. - (void)viewDidLoad {
  31. [super viewDidLoad];
  32. [self initUI];
  33. }
  34. - (void)initUI {
  35. [self initTableViewAsDefaultStyle:_tableView];
  36. }
  37. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
  38. return 1;
  39. }
  40. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  41. return 1;
  42. }
  43. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  44. CGFloat height = 151.0f;
  45. return height;
  46. }
  47. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  48. UITableViewCell *cell = nil;
  49. MultiHomeHubTableViewCell *tcell = (MultiHomeHubTableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"MultiHubCellIdentifier"];
  50. cell = tcell;
  51. return cell;
  52. }
  53. - (IBAction)btnCloseTouched:(id)sender {
  54. [self dismissViewControllerAnimated:YES completion:nil];
  55. }
  56. - (void)didReceiveMemoryWarning {
  57. [super didReceiveMemoryWarning];
  58. }
  59. @end