📈
objective-c
  • 前言
  • 编译原理
    • 编译LLVM
    • 我的第一个Clang插件
    • 自定义LibTooling
    • 自定义属性
    • AST
    • Swift
  • Foundation
    • Number
    • NSString
    • Class
    • Category
    • 琐事
    • 多线程
    • ARC
    • RunLoop
    • 算法
  • Network
  • Animation
  • JavaScriptCore
  • 架构设计
  • 跨平台
    • Flutter
  • UIKit
    • UIView
    • AutoLayout
    • WebView
  • ApplePay
  • In-App Purchase
  • Reveal
  • Xcode
Powered by GitBook
On this page
  • 推荐三方库
  • 约束优先级
  • Content Hugging Priority

Was this helpful?

  1. UIKit

AutoLayout

PreviousUIViewNextWebView

Last updated 5 years ago

Was this helpful?

推荐三方库

约束优先级

在Autolayout中每个约束都有一个优先级, 优先级的范围是1 ~ 1000。创建一个约束,默认的优先级是最高的1000

Content Hugging Priority

表示一个控件抗拉伸的优先级。优先级越高,越不容易被拉伸,默认是250。

Content Compression Resistance Priority

表示一个控件抗压缩的优先级。优先级越高,越不容易被压缩,默认是750

Masonary