Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileZXLee committed Dec 15, 2020
2 parents 57cfe84 + 7975b76 commit b7af033
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ self.zx_navLeftBtn.zx_fixImageSize = CGSizeMake(10,10);
```objective-c
self.zx_navLeftBtn.zx_textAttachWidth = 20;
```
* 设置NavItemBtn内部图片x轴的偏移量,负数代表左移,无title且设置了zx_fixImageSize后生效,仅改变内容imageView的位移,不会改变原始NavItemBtn的frame
```objective-c
self.zx_navLeftBtn.zx_imageOffsetX = -10;
```
* 设置NavItemBtn的tintColor仅用于UIControlStateNormal状态(请在zx_imageColor和zx_tintColor之前设置),默认为NO
```objective-c
self.zx_navLeftBtn.zx_useTintColorOnlyInStateNormal = YES;
```
* 自定义NavItemView
```objective-c
self.zx_navLeftBtn.zx_customView = [UISwitch new];
Expand Down

0 comments on commit b7af033

Please sign in to comment.