Intermediate Auto Layout

7ac1ab5bb2ef53dea57f36dd24e3b3c0?s=47 Peter Stuart
December 12, 2013

Intermediate Auto Layout

Talk given at CocoaHeads Boston.

7ac1ab5bb2ef53dea57f36dd24e3b3c0?s=128

Peter Stuart

December 12, 2013
Tweet

Transcript

  1. 7.

    Scroll Views - (void)keyboardWillShow:(NSNotification *)notification { CGFloat offset = ...;

    self.bottomConstraint.constant = offset; [UIView animate...:^{ [self.view layoutIfNeeded]; }]; }
  2. 17.

    Misc. • Align views/controls that contain text using NSLayoutAttributeBaseline, not

    NSLayoutAttributeCenterY • Manage constraints with views, not view controllers • Avoid using explicit sizes