Take the 2-minute tour ×  How can I programmtically specify the
location of a UISegmentedControl? Setting the frame does
nothing. And it seems like mySegmentedControl.frame returns the
frame of the buttons and not the "bounding rectangle".  I should
note the segmented control I'm working with was added via
interface builder.  Edit - more info: so I just learned that
segmented controls usually go inside something like a UIToolbar.
So I've created an IBOutlet reference to the toolbar created for
me by the story board. When I log the location of this toolbar I
can see the y-position as off from what I want. However setting
the frame of this toolbar doesn't seem to move it.
share|improve this question have you tried
mySegmentedControl.center? Just a guess, are you trying to
specify the location of a UISegmentedControl inside a
UIBarButtonItem? Make sure your IBOutlet is set correctly and
that you are trying to access it after the xib or storyboard has
been loaded. –  brynbodayle Oct 23 '12 at 16:06 @bbodayle Tha