SPPageMenu
SPPageMenu copied to clipboard
大神请问个问题
menu作为navigationItem 时为什么上面的每个按钮字为什么显示不全啊 非得点击了那个按钮才是正常的希望改正谢谢
嗯,虽然我没试过,但是我大概知道你这个是什么原因导致的。肯定是你把menu作为了item的customView,这个customView是有宽度限制的,宽度又小,文字又多,显示不全是正常的,你可以调小menu的itemPadding属性试试,比如调整为0,或者将menu的字体调小一点
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 09:23,guojingjingghost 写道:
menu作为navigationItem 时为什么上面的每个按钮字为什么显示不全啊 非得点击了那个按钮才是正常的希望改正谢谢
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
大神你好我试了下调小menu的itemPadding属性试试,比如调整为0 但是不行还有就是我的设置了menu的宽度 明显就是大于每个item的宽度和 从第二个没选中的item就开始有显示不全的地方 还有就是一旦选中了就显示正常了
你下载的是版本是几
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 09:58,guojingjingghost 写道:
大神你好我试了下调小menu的itemPadding属性试试,比如调整为0 但是不行还有就是我的设置了menu的宽度 明显就是大于每个item的宽度和 从第二个没选中的item就开始有显示不全的地方 还有就是一旦选中了就显示正常了
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
SPPageMenu (3.4.2)
大神请问找到解决办法了吗
我才看到你发的版本,我试一下,这个问题我会比较关心,你把你创建menu和相关属性的设置代码发给我
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 13:52,guojingjingghost 写道:
大神请问找到解决办法了吗
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
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];
这差不多是我所有的设置了
漏了一个setItems:selectedItemIndex:这个方法,你把这个方法也发出来
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 14:01,guojingjingghost 写道:
这差不多是我所有的设置了
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
不用发了,我发现了bug,正在找原因
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 14:09,乐升平 写道: 漏了一个setItems:selectedItemIndex:这个方法,你把这个方法也发出来
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 14:01,guojingjingghost 写道:
这差不多是我所有的设置了
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
找到原因了,请问你是用的cocopods,还是直接在github上下载的
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 14:19,乐升平 写道: 不用发了,我发现了bug,正在找原因
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 14:09,乐升平 写道: 漏了一个setItems:selectedItemIndex:这个方法,你把这个方法也发出来
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 14:01,guojingjingghost 写道:
这差不多是我所有的设置了
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
cocoapods
你的问题解决了,刚刚发布了新版,3.4.5
| | 乐升平 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2018年12月12日 15:07,guojingjingghost 写道:
cocoapods
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
好的谢谢了 大神