Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Почему ты до сих пор не используешь Auto Layout?

Avatar for larryonoff larryonoff
November 02, 2013

Почему ты до сих пор не используешь Auto Layout?

Avatar for larryonoff

larryonoff

November 02, 2013

Other Decks in Programming

Transcript

  1. Constraints in the Code • forget about frame • translatesAutoresizingMaskIntoConstraints

    = NO • not so easy to define auto layout constraints, instead of autosizing
  2. Auto Layout and view animation • myView.frame = newFrame •

    layoutIfNeeded • animate the constraints, not the frames