Commit 44ab403cdbbcbafb621691a4ae41135be152eefc

Authored by zhangxiaowen
1 parent 500b43fb

no message

CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/cnlive_white_more.imageset/cnlive_white_more@2x.png

205 Bytes | W: | H:

448 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/cnlive_white_more.imageset/cnlive_white_more@3x.png

962 Bytes | W: | H:

771 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
CNLiveCustomControl/Classes/NavigationBar/CNLiveNavigationBar.m
... ... @@ -134,6 +134,7 @@ static const NSInteger margin = 15;
134 134 UIImage *image = [self getImageWithImageName:@"cnlive_back_black_b" bundleName:@"CNLiveCustomControl" targetClass:[self class]];
135 135 [_left setImage:[image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];
136 136 _left.titleLabel.font = [UIFont systemFontOfSize:15];
  137 + [_left setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
137 138 [_left setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
138 139 [_left addTarget:self action:@selector(leftDidClicked:) forControlEvents:UIControlEventTouchUpInside];
139 140 }
... ...
Example/CNLiveCustomControl/CNLIVEViewController.m
... ... @@ -42,9 +42,8 @@
42 42 if (!_navigationBar) {
43 43 _navigationBar = [CNLiveNavigationBar navigationBar];
44 44 _navigationBar.title.text = @"首页";
45   - _navigationBar.backgroundColor = [UIColor clearColor];
46   - UIImage *image = [self getImageWithImageName:@"cnlive_back_white_b" bundleName:@"CNLiveCustomControl" targetClass:[CNLiveNavigationBar class]];
47   - _navigationBar.leftImage = image;
  45 +// UIImage *image = [self getImageWithImageName:@"cnlive_back_white_b" bundleName:@"CNLiveCustomControl" targetClass:[CNLiveNavigationBar class]];
  46 +// _navigationBar.leftImage = image;
48 47 // _navigationBar.rightTitle = @"相册";
49 48 _navigationBar.onClickLeftButton = ^{
50 49 NSLog(@"左");
... ...