相关疑难解决方法(0)

UITabBar selectionIndicatorImage填充

UITabBar为此设置了自定义指标图像

UIImage *tabBarSelectedImage = [[UIImage imageNamed:@"tabBar_selected"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
[[UITabBar appearance] setSelectionIndicatorImage:tabBarSelectedImage];
Run Code Online (Sandbox Code Playgroud)

并在我的周围获得4px填充tabBarSelectedImage.是否可以将填充设置为0px?这样我tabBarSelectedImage填满了整个空间,没有边框可见?

iphone uitabbar

20
推荐指数
2
解决办法
6536
查看次数

标签 统计

iphone ×1

uitabbar ×1