Using xCode 4.6, I have a toolbar at the top of my view that contains 2 buttons, followed by a text field and two more buttons after that.
I have set the buttons to be equal size and I can drag the width of the text field so that the full width of the toolbar is being used.
This looks good in portrait, but for landscape I get a lot of white space after the last item.
How can I set the text field as if it was "width 100%" so that it would expand to fill up the toolbar? Or how could I cause the width of the item to change when the screen is rotated?
I'm new to xCode! So most of my work is not written programmatically. Many helpful tutorials I use refer to a different version of xCode so can be tricky to follow.