I would like to add a main button to a UITabBar as shown in the image: main button, the button i wish to add meaning i would like to add a button in the center of the bar, the button will be a bit higher then the other buttons( the regular buttons of an UITabBar)
If you're using Interface Builder:
In your View Controller:
Then in viewDidLoad
under super.ViewDidLoad()
add:
button.layer.zposition = 1
It should give you this result:
You can lower the image by increasing the negative number on the bottom constraint.