Commit f10cc6d64a2b377f2b753e66cec0114723f5eb36
1 parent
7e18a6e1
提交0.0.17
Showing
2 changed files
with
15 additions
and
4 deletions
CNLiveOrganizationValidationModule.podspec
CNLiveOrganizationValidationModule/Classes/CNLiveOrganizationValidationModule/Controller/CNLiveBAgreementCommitFinishController.m
| ... | ... | @@ -94,10 +94,21 @@ |
| 94 | 94 | [self.view addSubview:self.tipContentL]; |
| 95 | 95 | [self.view addSubview:self.returnBtn]; |
| 96 | 96 | |
| 97 | - [_returnBtn addTarget:self action:@selector(returnBtnAction:) forControlEvents:UIControlEventTouchUpInside]; | |
| 97 | + [self.returnBtn addTarget:self action:@selector(returnBtnAction:) forControlEvents:UIControlEventTouchUpInside]; | |
| 98 | + | |
| 99 | + | |
| 100 | + QMUIButton *btn = [[QMUIButton alloc]init]; | |
| 101 | + btn.frame = CGRectMake(0, 0, 65, 44); | |
| 102 | + | |
| 103 | + UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 10,13,23)]; | |
| 104 | + imageV.image = [UIImage imageNamedFromOrganization:@"organization_back"]; | |
| 105 | + [btn addSubview:imageV]; | |
| 106 | + | |
| 107 | + | |
| 108 | + [btn addTarget:self action:@selector(returnBtnAction:) forControlEvents:(UIControlEventTouchUpInside)];//不起作用 | |
| 109 | + UIBarButtonItem *leftItem = [[UIBarButtonItem alloc]initWithCustomView:btn]; | |
| 98 | 110 | |
| 99 | - UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamedFromOrganization:@"organization_back"] style:UIBarButtonItemStylePlain target:self action:@selector(returnBtnAction:)]; | |
| 100 | - self.navigationItem.leftBarButtonItem = backItem; | |
| 111 | + self.navigationItem.leftBarButtonItem = leftItem; | |
| 101 | 112 | |
| 102 | 113 | } |
| 103 | 114 | ... | ... |