I would like to insert a UISegmentedControl
somewhere in the top panel of the UINavigationController
.
You should not embed it in UIBarButtonItem
and set it as left or right barButtonItem.
I can understand this approach when dealing with iPhone screen real estate. However, I do this in Popover on the iPad, and there is βa lotβ of vertical space in the top bar. If I add segmentedControl as left or right barButtonItem, it will be reduced so that I can not see the text on my segment button, it becomes the width of the Finish button, etc. If I try to add it to the navigationItem, the TitleView will be displayed all the way to the right and is still shrinking more than my 3-segment control with text can be displayed.
How can I add a UISegmentedControl
to the center of the UINavigationController
that wraps my popovers content.
Hope someone can help me :) thanks in advance.
ios ipad uinavigationitem uisegmentedcontrol
Rickig
source share