SKMineViewController.m 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. - (void)viewWillAppear:(BOOL)animated {
  20. [super viewWillAppear:animated];
  21. [self.navigationController setNavigationBarHidden:NO];
  22. }
  23. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
  24. return 1;
  25. }
  26. - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  27. return 3;
  28. }
  29. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  30. return 64;
  31. }
  32. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  33. return [self userTableView:tableView cellForRowAtIndexPath:indexPath];
  34. }
  35. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  36. [self.mTableView deselectRowAtIndexPath:indexPath animated:YES];
  37. return [self userTableView:tableView didSelectRowAtIndexPath:indexPath];
  38. }
  39. - (void)onRefreshChildsDevices {
  40. [self.mTableView reloadData];
  41. }
  42. @end