osx - How to center 2 buttons in Cocoa? -
I have an OS X app in which the buttons are next to each other buttons are well-focused.
But when I press the window Change the shape, the buttons stay in one place.
How do I align buttons so that they Can the window change again when they are always centered?
As you are using XCode4.6, by default it will be in Autolayout mode.
You have to change it to a manual layout (which I'm finding it easy to do)
How to:
Click on XIB Do not use auto layout Navigate to - & gt; Box box Select - & gt; Specialty Inspector - & gt; Title Status None & amp; None of the border type Choose texFiled - & gt; ; Size inspector Select the box - & Gt;
Comments
Post a Comment