Updated 5 November 2017
As you see now in iOS application most of the applications not contain Text in the tab bar. It’s so Simple You just Pass the text to the tab bar title empty string. If you want to move the position of the image in tab bar you just have to change the UIEdgeInsetsMake of tab bar image it properly set image, you can also add selected tab bar image from storyboard to look good.Check the example of tab bar and image:-
1 2 3 4 5 6 7 8 |
func removeTabbarItemsText() { if let items = tabBarController?.tabBar.items { for item in items { item.title = "" item.imageInsets = UIEdgeInsetsMake(6, 0, -6, 0); } } } |
You have to call this function and it will remove text in your tab bar and also sets your image
1 |
self.removeTabbarItemsText() |
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.