Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabBar 加号按钮封装版本,透出加号按钮注册接口 #6

Open
ChenYilong opened this issue Jul 18, 2019 · 2 comments
Open
Assignees
Labels

Comments

@ChenYilong
Copy link
Member

No description provided.

@wjun94
Copy link
Contributor

wjun94 commented Jul 25, 2019

通过isButton配置是否带加号按钮。

if (len % 2 == 0) {
        this.btmNavbar.insert(len ~/ 2, null);
      } else {
        this.btmNavbar.insert(len ~/ 2 + 1, null);
        this.btmNavbar.insert(len ~/ 2 + 2, null);
      }

目前先简单处理tab基数问题,如果是偶数,tab中间添加1个tab,用于放置按钮位置。如果tab为基数,添加2个按钮。
具体可以参考https://github.com/ChenYilong/CYLTabBarController 怎么封装相关代码,因为我没用过这个库,所以先简单做下封装使用。

@XuYanci
Copy link
Member

XuYanci commented Jul 26, 2019

Get it

@XuYanci XuYanci removed their assignment Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants