Reputation: 2425
I have a textfield created using xib over my window.I have enabled autolayout property for my window.I want my textfield to grow horizontally to meet the window bounds.My window grows but not the textfield. Please help!I am using Mac OS Lion
Upvotes: 0
Views: 331
Reputation: 13003
Did you read my answer on your other question? Select the text field in Interface Builder. A blue line connecting the field to the right side of the window represents a constraint that will cause the right side of the field to stay a fixed distance from the edge of the window. If you drag the text field so that it clicks into place (the human interface guidelines defined distance away from the edge of the window), then that will create the constraint. If not, you can do it by hand from the menus: Editor > Pin > Trailing Space to Superview.
You might find the documentation helpful, since it has images and explanation and such. There's a bunch! Interface Builder, programming guide, sample code, release notes, WWDC video.
Upvotes: 1