12207480 / TYPagerController

page scroll view and controller,simple,high custom,and have many tabBar styles,,support Objective-C and swift
MIT License
1.37k stars 231 forks source link

当设置 #63

Closed xiaohange closed 7 years ago

xiaohange commented 7 years ago
  1. 当设置self.tabBarHeight = 50; self.tabBar.layout.adjustContentCellsCenter = YES;失效;

  2. 当只需要两个item时, 如何居中, 均匀分布呢

12207480 commented 7 years ago

2.设置两个cell的宽度等view的宽度/2 即可 image

12207480 commented 7 years ago

1.已修复

xiaohange commented 7 years ago

@12207480 谢谢

xiaohange commented 7 years ago

@12207480 但是当设置两个的时候, 切换时item左右晃动

xiaohange commented 7 years ago

3,除了上面的这个问题, 还有一个就是希望能有一个参数控制是否需要放大效果

12207480 commented 7 years ago

什么设备 ios几,我这里没有发现晃动

xiaohange commented 7 years ago

@12207480 我的是iOS11 iphone7p, 当我设置2个按钮时, 切换时item会左右移动

xiaohange commented 7 years ago

1 左右会移动

xiaohange commented 7 years ago

@12207480

12207480 commented 7 years ago

我看看

xiaohange commented 7 years ago

@12207480 谢谢

12207480 commented 7 years ago

你这样三个等宽全屏不需要设置self.tabBar.layout.adjustContentCellsCenter = YES

xiaohange commented 7 years ago

我试了下不设置上面的属性也会出现晃动,

12207480 commented 7 years ago

把这个demo发给我

xiaohange commented 7 years ago

还是你的demo, 我只改了下item的个数和高度

12207480 commented 7 years ago

看看你改的地方

xiaohange commented 7 years ago
9ceb6c29-9e9a-49ba-83e1-42aee98773e7

只改了这几个地方

xiaohange commented 7 years ago

@12207480

12207480 commented 7 years ago

好的

12207480 commented 7 years ago

self.tabBar.layout.cellSpacing = 0; self.tabBar.layout.cellEdging = 0; 加上这两句即可

xiaohange commented 7 years ago
  1. 这个item下滑线可以设置长度吗 2.是否有参数可控制item不使用文字动画效果, @12207480 谢谢了, 辛苦了
xiaohange commented 7 years ago

2017-10-28 10 45 34

12207480 commented 7 years ago

1.progressEdging 2.normal select 设置一样的参数即可

xiaohange commented 7 years ago

解决了, 谢谢你, 没细心看参数,