0

I want to create a custom tabBar like this enter image description here

Now I just can create a tabBar as below, I want the 4 tab bar Items (the add sign is a button) to be centered and don't cover the button, so the cart icon should move to the left a little bit, and the mall icon should move to the right. But I don't know how to adjust the position of tab bar item, neither using storyBoard or in a programmatic way.

enter image description here

Thank you for your help.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Bad Son
  • 131
  • 2
  • 16

2 Answers2

2

You should try adjusting the insets for the individual icons. You can do this in the storyboard.

Check this post: Moving UITabBarItem Image down?

Michael_OR
  • 21
  • 1
1

Please modify Item Position in Attributes Inspector in Storyboard.

  1. Select Item position as "Centered".
  2. Choose Custom for Width and Spacing.
  3. Play with the numbers for Width and Spacing and set it was you wish.

enter image description here

Dharman
  • 30,962
  • 25
  • 85
  • 135
Anand
  • 1,820
  • 2
  • 18
  • 25