Commit a19c282b2929c5cf86fc88e46e7ad7d32c3e2f5b
1 parent
dc799042
提交0.0.31_更改返回键
Showing
4 changed files
with
15 additions
and
8 deletions
CNLiveServiceCenterModule.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveServiceCenterModule' | 10 | s.name = 'CNLiveServiceCenterModule' |
| 11 | - s.version = '0.0.30' | 11 | + s.version = '0.0.31' |
| 12 | s.summary = '网家家企业端服务中心模块' | 12 | s.summary = '网家家企业端服务中心模块' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
CNLiveServiceCenterModule/Assets/CNLiveServiceCenterModule.bundle/service_back@2x.png
CNLiveServiceCenterModule/Assets/CNLiveServiceCenterModule.bundle/service_back@3x.png
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/Controller/CNLiveBCreatorViewController.m
| @@ -46,13 +46,20 @@ | @@ -46,13 +46,20 @@ | ||
| 46 | [self.view setBackgroundColor:[UIColor whiteColor]]; | 46 | [self.view setBackgroundColor:[UIColor whiteColor]]; |
| 47 | [self initWKWebView]; | 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 | [btn addTarget:self action:@selector(backAction:) forControlEvents:(UIControlEventTouchUpInside)];//不起作用 | 63 | [btn addTarget:self action:@selector(backAction:) forControlEvents:(UIControlEventTouchUpInside)];//不起作用 |
| 57 | UIBarButtonItem *leftItem = [[UIBarButtonItem alloc]initWithCustomView:btn]; | 64 | UIBarButtonItem *leftItem = [[UIBarButtonItem alloc]initWithCustomView:btn]; |
| 58 | 65 |