JXChatLogMoveVC.m 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // JXChatLogMoveVC.m
  3. // shiku_im
  4. //
  5. // Created by p on 2019/6/5.
  6. // Copyright © 2019年 Reese. All rights reserved.
  7. //
  8. #import "JXChatLogMoveVC.h"
  9. #import "JXChatLogMoveSelectVC.h"
  10. @interface JXChatLogMoveVC ()
  11. @end
  12. @implementation JXChatLogMoveVC
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. // Do any additional setup after loading the view.
  16. self.isGotoBack = YES;
  17. self.title = Localized(@"JX_ChatLogMove");
  18. self.heightHeader = JX_SCREEN_TOP;
  19. self.heightFooter = 0;
  20. //self.view.frame = CGRectMake(0, 0, JX_SCREEN_WIDTH, JX_SCREEN_HEIGHT);
  21. [self createHeadAndFoot];
  22. UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(0, 128 + 24, JX_SCREEN_WIDTH, 15)];
  23. title.font = [UIFont systemFontOfSize:14];
  24. title.textAlignment = NSTextAlignmentCenter;
  25. title.text = Localized(@"JX_ChatLogMoveToDevice");
  26. [self.tableBody addSubview:title];
  27. UILabel *subTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(title.frame) + 12, JX_SCREEN_WIDTH, 14)];
  28. subTitle.font = [UIFont systemFontOfSize:13];
  29. subTitle.textColor = [UIColor lightGrayColor];
  30. subTitle.textAlignment = NSTextAlignmentCenter;
  31. subTitle.text = Localized(@"JX_TwoDeviceConnectWIFI");
  32. [self.tableBody addSubview:subTitle];
  33. UIButton *btn = [UIFactory createCommonButton:Localized(@"JX_MoveChatRecords") target:self action:@selector(onMove)];
  34. [btn setBackgroundImage:nil forState:UIControlStateHighlighted];
  35. btn.custom_acceptEventInterval = 1.f;
  36. [btn.titleLabel setFont:SYSFONT(15)];
  37. btn.frame = CGRectMake(62,CGRectGetMaxY(subTitle.frame) + 39, JX_SCREEN_WIDTH- 62*2, 40);
  38. [btn setBackgroundImage:nil forState:UIControlStateNormal];
  39. btn.layer.masksToBounds = YES;
  40. btn.layer.cornerRadius = 7.f;
  41. btn.backgroundColor = THEMECOLOR;
  42. [self.tableBody addSubview:btn];
  43. }
  44. - (void)onMove {
  45. JXChatLogMoveSelectVC *vc = [[JXChatLogMoveSelectVC alloc] init];
  46. [g_navigation pushViewController:vc animated:YES];
  47. [self actionQuit];
  48. }
  49. /*
  50. #pragma mark - Navigation
  51. // In a storyboard-based application, you will often want to do a little preparation before navigation
  52. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  53. // Get the new view controller using [segue destinationViewController].
  54. // Pass the selected object to the new view controller.
  55. }
  56. */
  57. @end