Skip to content

Commit

Permalink
修复延时设置按钮文字布局未更新的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileZXLee committed Dec 5, 2020
1 parent e4a7da4 commit 409d350
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ZXNavigationBar.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ZXNavigationBar'
s.version = '1.3.2'
s.version = '1.3.3'
s.summary = '灵活轻量的自定义导航栏,轻松实现各种自定义效果'
s.homepage = 'https://github.com/SmileZXLee/ZXNavigationBar'
s.license = 'MIT'
Expand Down
4 changes: 4 additions & 0 deletions ZXNavigationBar/ZXNavigationBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,21 @@ - (void)initNavBar{

__weak typeof(self) weakSelf = self;
rightBtn.zx_barItemBtnFrameUpdateBlock = ^(ZXNavItemBtn * _Nonnull barItemBtn) {
weakSelf.self.shouldRefLayout = YES;
[weakSelf relayoutSubviews];
};

subRightBtn.zx_barItemBtnFrameUpdateBlock = ^(ZXNavItemBtn * _Nonnull barItemBtn) {
weakSelf.self.shouldRefLayout = YES;
[weakSelf relayoutSubviews];
};

leftBtn.zx_barItemBtnFrameUpdateBlock = ^(ZXNavItemBtn * _Nonnull barItemBtn) {
weakSelf.self.shouldRefLayout = YES;
[weakSelf relayoutSubviews];
};
subLeftBtn.zx_barItemBtnFrameUpdateBlock = ^(ZXNavItemBtn * _Nonnull barItemBtn) {
weakSelf.self.shouldRefLayout = YES;
[weakSelf relayoutSubviews];
};
}
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,21 @@ - (void)initNavBar{

__weak typeof(self) weakSelf = self;
rightBtn.zx_barItemBtnFrameUpdateBlock = ^(ZXNavItemBtn * _Nonnull barItemBtn) {
weakSelf.self.shouldRefLayout = YES;
[weakSelf relayoutSubviews];
};

subRightBtn.zx_barItemBtnFrameUpdateBlock = ^(ZXNavItemBtn * _Nonnull barItemBtn) {
weakSelf.self.shouldRefLayout = YES;
[weakSelf relayoutSubviews];
};

leftBtn.zx_barItemBtnFrameUpdateBlock = ^(ZXNavItemBtn * _Nonnull barItemBtn) {
weakSelf.self.shouldRefLayout = YES;
[weakSelf relayoutSubviews];
};
subLeftBtn.zx_barItemBtnFrameUpdateBlock = ^(ZXNavItemBtn * _Nonnull barItemBtn) {
weakSelf.self.shouldRefLayout = YES;
[weakSelf relayoutSubviews];
};
}
Expand Down

0 comments on commit 409d350

Please sign in to comment.