how to make UITabBar selection indicator image fill the whole space?
问题 I have a UITabBarController where I use this code to set selection indicator image: let selectedBG = UIImage(named:"tabbarbgtest.png")?.resizableImageWithCapInsets(UIEdgeInsetsMake(0, 0, 0, 0)) UITabBar.appearance().selectionIndicatorImage = selectedBG But the image does not fill the whole space - see image below: The image is just a red square with a solution on 82x49px, but with a wider image it still does not fill the whole space. Hope you guys can help - thanks. 回答1: If you want to set