zoukankan      html  css  js  c++  java
  • 第13月第12天 Constraints priority

    1.Constraints priority

    将evInputView的高度约束的priority设为750,evInputView的inputTextView如果不设高度约束,那么高度就是defaultInputViewH,如果设了高度,那么就是这个高度.

            evInputView.snp.remakeConstraints { (make) in

                make.left.right.equalTo(0)

                make.bottom.equalTo(bottom)

                make.height.equalTo(defaultInputViewH).priority(750)

            }

     

     

            inputTextView.snp.remakeConstraints { (make) in

                make.top.equalTo(textViewFrame.top)

                make.bottom.equalTo(textViewFrame.bottom)

                make.left.equalTo(textViewFrame.left)

                make.right.equalTo(textViewFrame.right)

            }

     

            inputTextView.snp.remakeConstraints { (make) in

                make.top.equalTo(textViewFrame.top)

                make.bottom.equalTo(textViewFrame.bottom)

                make.left.equalTo(textViewFrame.left)

                make.right.equalTo(textViewFrame.right)

                make.height.equalTo(height)

            }

     

     

    https://segmentfault.com/a/1190000004650551

    https://github.com/February12/YLBaseChat/

  • 相关阅读:
    积水路面Wet Road Materials 2.3
    门控时钟问题
    饮料机问题
    Codeforces Round #340 (Div. 2) E. XOR and Favorite Number (莫队)
    Educational Codeforces Round 82 (Rated for Div. 2)部分题解
    Educational Codeforces Round 86 (Rated for Div. 2)部分题解
    Grakn Forces 2020部分题解
    2020 年百度之星·程序设计大赛
    POJ Nearest Common Ancestors (RMQ+树上dfs序求LCA)
    算法竞赛进阶指南 聚会 (LCA)
  • 原文地址:https://www.cnblogs.com/javastart/p/7656679.html
Copyright © 2011-2022 走看看