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/

  • 相关阅读:
    qq链接
    HTML5获取地理坐标
    AJAX的同步和异步的区别
    取消版本控制
    格式化打印数组函数
    图片返回刷新
    从哪些方面优化网站
    朋友圈的基本数据结构设计是怎样的?既能做到完美阅读权限设置,又能兼顾性能?
    表单提交数据安全性验证
    自然世界的划分
  • 原文地址:https://www.cnblogs.com/javastart/p/7656679.html
Copyright © 2011-2022 走看看