Commit a19c282b2929c5cf86fc88e46e7ad7d32c3e2f5b

Authored by 梁星国
1 parent dc799042

提交0.0.31_更改返回键

CNLiveServiceCenterModule.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveServiceCenterModule'
11   - s.version = '0.0.30'
  11 + s.version = '0.0.31'
12 12 s.summary = '网家家企业端服务中心模块'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveServiceCenterModule/Assets/CNLiveServiceCenterModule.bundle/service_back@2x.png

768 Bytes | W: | H:

628 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
CNLiveServiceCenterModule/Assets/CNLiveServiceCenterModule.bundle/service_back@3x.png

1.3 KB | W: | H:

1.15 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/Controller/CNLiveBCreatorViewController.m
... ... @@ -46,13 +46,20 @@
46 46 [self.view setBackgroundColor:[UIColor whiteColor]];
47 47 [self initWKWebView];
48 48  
49   - UIButton *btn = [[UIButton alloc]init];
50   - btn.frame =CGRectMake(0, 0, 57, 44);
51   - [btn setImage:[UIImage imageNamedFromService:@"service_back"] forState:(UIControlStateNormal)];//不起作用
52   - [btn setTitle:@"返回" forState:UIControlStateNormal];
53   - [btn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
54   - btn.titleLabel.font = [UIFont systemFontOfSize:14];
55   - btn.contentEdgeInsets = UIEdgeInsetsMake(0, -8, 0, 8);
  49 + QMUIButton *btn = [[QMUIButton alloc]init];
  50 + btn.frame = CGRectMake(0, 0, 65, 44);
  51 +
  52 + UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 10,13,23)];
  53 + imageV.image = [UIImage imageNamedFromService:@"service_back"];
  54 + [btn addSubview:imageV];
  55 +
  56 + UILabel *titleL = [[UILabel alloc] initWithFrame:CGRectMake(20, 0, 40, 44)];
  57 + titleL.text = @"返回";
  58 + titleL.font = [UIFont systemFontOfSize:16];
  59 + titleL.textAlignment = NSTextAlignmentLeft;
  60 + [btn addSubview:titleL];
  61 +
  62 +
56 63 [btn addTarget:self action:@selector(backAction:) forControlEvents:(UIControlEventTouchUpInside)];//不起作用
57 64 UIBarButtonItem *leftItem = [[UIBarButtonItem alloc]initWithCustomView:btn];
58 65  
... ...