Skip to content

大神请问个问题 #30

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

Open
guojingjingghost opened this issue Dec 12, 2018 · 14 comments
Open

大神请问个问题 #30

guojingjingghost opened this issue Dec 12, 2018 · 14 comments

Comments

@guojingjingghost
Copy link

menu作为navigationItem 时为什么上面的每个按钮字为什么显示不全啊 非得点击了那个按钮才是正常的希望改正谢谢

@SPStore
Copy link
Owner

SPStore commented Dec 12, 2018 via email

@guojingjingghost
Copy link
Author

大神你好我试了下调小menu的itemPadding属性试试,比如调整为0 但是不行还有就是我的设置了menu的宽度 明显就是大于每个item的宽度和 从第二个没选中的item就开始有显示不全的地方 还有就是一旦选中了就显示正常了

@SPStore
Copy link
Owner

SPStore commented Dec 12, 2018 via email

@guojingjingghost
Copy link
Author

SPPageMenu (3.4.2)

@guojingjingghost
Copy link
Author

大神请问找到解决办法了吗

@SPStore
Copy link
Owner

SPStore commented Dec 12, 2018 via email

@guojingjingghost
Copy link
Author

SPPageMenu *topBar = [[SPPageMenu alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth-80, 40) trackerStyle:SPPageMenuTrackerStyleLineAttachment];
topBar.backgroundColor = kClearColor;
topBar.dividingLine.hidden = YES;
topBar.itemPadding = 15;
topBar.selectedItemTitleColor = kWhiteColor;
topBar.unSelectedItemTitleColor = kWhiteColor;
topBar.tracker.backgroundColor = kWhiteColor;
topBar.trackerWidth = 20;
topBar.delegate = self;
topBar.selectedItemTitleFont = [UIFont systemFontOfSize:17];
topBar.unSelectedItemTitleFont = [UIFont systemFontOfSize:15];
[topBar mas_makeConstraints:^(MASConstraintMaker *make) {
make.size.mas_equalTo(CGSizeMake(kScreenWidth - 100, 40));
}];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:topBar];

@guojingjingghost
Copy link
Author

这差不多是我所有的设置了

@SPStore
Copy link
Owner

SPStore commented Dec 12, 2018 via email

@SPStore
Copy link
Owner

SPStore commented Dec 12, 2018 via email

@SPStore
Copy link
Owner

SPStore commented Dec 12, 2018 via email

@guojingjingghost
Copy link
Author

cocoapods

@SPStore
Copy link
Owner

SPStore commented Dec 12, 2018 via email

@guojingjingghost
Copy link
Author

好的谢谢了 大神

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants