Dan*_*son 5 objective-c uitabbar ios
我的应用程序中有一个带有3个条形的UITabBar.我要做的是实现自定义selectionIndicatorImage.一切都很好,除了最后一个酒吧,我得到一个奇怪的1磅填充到右边.
例

码
[[UITabBar appearance] setBackgroundImage:[UIImage imageNamed:@"tabbar-test.png"]];
[[UITabBar appearance] setSelectionIndicatorImage:[UIImage imageNamed:@"tabbar-selected.png"]];
Run Code Online (Sandbox Code Playgroud)
外形尺寸
tabbar-test.png 320x49和640x98
tabbar-selected.png 107x49和214x98
以下是一些与您类似的问题:
如何删除 UITabBarItem SelectionImage 填充?
我遇到了这个问题,但没有找到很好的解决方案。最后,我使用第三部分控制器:
https://github.com/robbdimitrov/RDVTabBarController
| 归档时间: |
|
| 查看次数: |
1146 次 |
| 最近记录: |