Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You don't state which version of OS X you are targeting, and if it is Lion, whether you use auto layout or traditional springs and struts.</p> <p>If you use springs and struts (autoresizing masks), then you should just set a frame on the text field, before or after you add it.</p> <p>If you use auto layout, you'll have to add the appropriate constraints after you have added the field. Oh, and remember to set the <code>translatesAutoresizingMaskIntoConstraints</code> property of the text field to <code>NO</code> before you add it - otherwise it will add its own constraints that will interfere with ones you add. In my experience it is much better to add your own explicit constraints than to rely on the auto generated ones.</p> <p>There are some good docs on layout constraints here:</p> <p><a href="https://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html" rel="nofollow">https://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AutolayoutPG/Articles/Introduction.html</a></p> <p><a href="http://developer.apple.com/library/mac/#releasenotes/UserExperience/RNAutomaticLayout/_index.html#//apple_ref/doc/uid/TP40010631" rel="nofollow">http://developer.apple.com/library/mac/#releasenotes/UserExperience/RNAutomaticLayout/_index.html#//apple_ref/doc/uid/TP40010631</a></p> <p>And the WWDC session from last year really helps understand it (requires a password):</p> <p><a href="https://developer.apple.com/videos/wwdc/2011/?id=103" rel="nofollow">https://developer.apple.com/videos/wwdc/2011/?id=103</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload