Commit 500b43fb6291f9138db0b779ade1b1a6bc73e0eb
1 parent
33df79ee
no message
Showing
1 changed file
with
3 additions
and
0 deletions
Example/CNLiveCustomControl/CNLIVEViewController.m
| @@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
| 9 | #import "CNLIVEViewController.h" | 9 | #import "CNLIVEViewController.h" |
| 10 | #import "CNLiveNavigationBar.h" | 10 | #import "CNLiveNavigationBar.h" |
| 11 | #import "QMUIKit.h" | 11 | #import "QMUIKit.h" |
| 12 | +#import "CNLiveCategory.h" | ||
| 12 | 13 | ||
| 13 | @interface CNLIVEViewController () | 14 | @interface CNLIVEViewController () |
| 14 | @property (nonatomic, strong) CNLiveNavigationBar *navigationBar; | 15 | @property (nonatomic, strong) CNLiveNavigationBar *navigationBar; |
| @@ -42,6 +43,8 @@ | @@ -42,6 +43,8 @@ | ||
| 42 | _navigationBar = [CNLiveNavigationBar navigationBar]; | 43 | _navigationBar = [CNLiveNavigationBar navigationBar]; |
| 43 | _navigationBar.title.text = @"首页"; | 44 | _navigationBar.title.text = @"首页"; |
| 44 | _navigationBar.backgroundColor = [UIColor clearColor]; | 45 | _navigationBar.backgroundColor = [UIColor clearColor]; |
| 46 | + UIImage *image = [self getImageWithImageName:@"cnlive_back_white_b" bundleName:@"CNLiveCustomControl" targetClass:[CNLiveNavigationBar class]]; | ||
| 47 | + _navigationBar.leftImage = image; | ||
| 45 | // _navigationBar.rightTitle = @"相册"; | 48 | // _navigationBar.rightTitle = @"相册"; |
| 46 | _navigationBar.onClickLeftButton = ^{ | 49 | _navigationBar.onClickLeftButton = ^{ |
| 47 | NSLog(@"左"); | 50 | NSLog(@"左"); |