Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileZXLee authored Dec 18, 2020
1 parent a44ec98 commit 9a54410
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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文字的附加高度
```objective-c
self.zx_navLeftBtn.zx_textAttachHeight = 10;
```
* 设置NavItemBtn的cornerRadius为高度的一半(圆形圆角)
```objective-c
self.zx_navLeftBtn.zx_setCornerRadiusRounded = YES;
```
* 设置NavItemBtn内部图片x轴的偏移量,负数代表左移,无title且设置了zx_fixImageSize后生效,仅改变内容imageView的位移,不会改变原始NavItemBtn的frame
```objective-c
self.zx_navLeftBtn.zx_imageOffsetX = -10;
Expand Down Expand Up @@ -273,6 +281,10 @@ self.zx_navFixHeight = 30;
```objective-c
self.zx_navLineViewBackgroundColor = [UIColor blueColor];
```
#### 设置分割线的高度,默认为1
```objective-c
self.zx_navLineViewHeight = 2;
```
* 分割线其他其他非frame相关属性通过`self.zx_navLineView`设置即可

#### 设置状态栏为白色
Expand Down

0 comments on commit 9a54410

Please sign in to comment.