Reputation: 1717
Want to try to add a segmented control (centered) via the story board. Here's what I want it to look like and it works via the storyboard.
Here's what it turns out like on the emulator/phone.
Can someone tell me what I am doing wrong? The plus sign has some insets (4 on each side, but I don't think thats the main reason for alignment)
Here is the heiarchy?
Upvotes: 0
Views: 204
Reputation: 562
You need to set titleView
for navigationItem
. Currently you are dealing it as a barButtonItem
see how to set titleView
.
Upvotes: 2