zoukankan      html  css  js  c++  java
  • ios auto layout demystified (二)

    Constraints 

    Constraint Types 

    • Layout constraints (NSLayoutConstraint class, public)—这些规则指定了view的几何学。他们通过将一个view关联到其他的view限定一个view的位置和大小。

    • Content size constraints (NSContentSizeLayoutConstraint class, private)—指定了一个view的size如何关联他的content。例如,content hugging规则避免添加padding,content compression规则避免内容剪切。

    • Autosizing constraints (NSAutoresizingMaskLayoutConstraint class, private)— autosizing 约束将更早的autoresizing masks转化入auto layout系统中。

    • Layout support constraints (_UILayoutSupportConstraint class, private)—为你的view controller instances建立实用性的top和bottom实例。这些约束限制content覆盖到障碍物上比如status bars。

    • Prototyping constraints (NSIBPrototypingLayoutConstraint class, private)— 是interface builder为你添加的约束。他们使得你可以创建interfaces。

  • 相关阅读:
    Mysql自定义函数总结
    MySQL的基本函数
    Mysql存储过程总结
    Mysql触发器总结
    Mysql索引总结(二)
    Mysql索引总结(一)
    Mysql游标使用
    别人的博客,留待后看
    mysql外键约束总结
    mysql视图总结
  • 原文地址:https://www.cnblogs.com/lisa090818/p/4303797.html
Copyright © 2011-2022 走看看