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/

  • 相关阅读:
    我在硅谷时候写的文章
    快速上手ABP
    朝花夕拾
    ABP问题速查表
    被低估的.net(上)
    申请Office 365一年免费的开发者账号攻略(2018年10月份版本)
    office365的开发者训练营,免费,在微软广州举办
    数据恢复顾问(DRA)
    使用RMAN对数据文件进行恢复
    Linux环境下利用句柄恢复Oracle误删除的数据文件
  • 原文地址:https://www.cnblogs.com/javastart/p/7656679.html
Copyright © 2011-2022 走看看