I set a custom indicator image for my UITabBar
like this
UIImage *tabBarSelectedImage = [[UIImage imageNamed:@"tabBar_selected"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
[[UITabBar appearance] setSelectionIndicatorImage:tabBarSelectedImage];
and get a 4px padding around my tabBarSelectedImage
. Is it possible to set that padding to 0px? So that my tabBarSelectedImage
fills the entire space and no border is visible?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…