Infinum iOS Talk S01E02 - Auto Layout by Ivan Damjanović

649 views

Published on

Auto Layout is great way to lay your app’s user interface by creating a relationships between the UI elements. Ivan shares his experience and tips&tricks with Auto Layout.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
649
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Infinum iOS Talk S01E02 - Auto Layout by Ivan Damjanović

  1. 1. Autolayout Ivan Damjanović
  2. 2. Zašto autolayout? • Autosizing mask! • Ručno postavljanje frame-ova
  3. 3. Osnovni pojmovi • Atributi - left, right, top, bottom, leading, trailing, width, height, centerX, centerY i baseline! • Relacije - =, <= i >=! • y = m*x + b! • Intrinsic content size
  4. 4. Autolayout + IB + =
  5. 5. Autolayout + IB
  6. 6. Autolayout + IB
  7. 7. Autolayout + kod • UIView add/remove constraint/s! • NSLayoutConstraint! • +constraintWithItem:attribute:relatedBy:toItem:attri bute:multiplier:constant:! • +constraintsWithVisualFormat:options:metrics:vie ws:! • NSDictionaryOfVariableBindings(...)
  8. 8. Autolayout + kod • Demo
  9. 9. Problemi • xCode se zna zablesirati
  10. 10. Što dalje? • Matthijs Hollemans! • http://www.raywenderlich.com/20881/beginning-autolayout-part-1-of-2! • http://www.raywenderlich.com/20897/beginning-autolayout-part-2-of-2! • Apple documentation! • https://developer.apple.com/library/ios/documentation/ userexperience/conceptual/AutolayoutPG/Introduction/ Introduction.html

×