SKMineViewController.m 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // SKMineViewController.m
  3. // Artimenring
  4. //
  5. // Created by 振兴 刘 on 15/12/2.
  6. // Copyright © 2015年 BaH Cy. All rights reserved.
  7. //
  8. #import "SKMineViewController.h"
  9. #import "SKMineViewController+user.h"
  10. #import <UMMobClick/MobClick.h>
  11. @implementation SKMineViewController
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. // Do any additional setup after loading the view.
  15. self.title = NSLocalizedString(@"Tabbar.Mine", nil);
  16. [self.navigationController setNavigationBarHidden:NO];
  17. [self addMoreButtons];
  18. }
  19. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
  20. return 1;
  21. }
  22. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  23. return 3;
  24. }
  25. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  26. return 64;
  27. }
  28. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  29. return [self userTableView:tableView cellForRowAtIndexPath:indexPath];
  30. }
  31. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  32. [self.mTableView deselectRowAtIndexPath:indexPath animated:YES];
  33. return [self userTableView:tableView didSelectRowAtIndexPath:indexPath];
  34. }
  35. - (void)onRefreshChildsDevices {
  36. [self.mTableView reloadData];
  37. }
  38. @end