Cocoa Autolayout:內容擁抱與內容壓縮阻力優先

問題:

I can't find a clear answer on Apple documentation regarding Cocoa Autolayout about the difference between content hugging and compression resistance. 關於Cocoa Autolayout關於內容擁抱和抗壓縮性之間差別的Apple文檔,我找不到明確的答案。 spa

Can somebody explain their usages and difference ? 有人能夠解釋他們的用法和差別嗎? .net


解決方案:

參考一: https://stackoom.com/question/14VPt/Cocoa-Autolayout-內容擁抱與內容壓縮阻力優先
參考二: https://oldbug.net/q/14VPt/Cocoa-Autolayout-content-hugging-vs-content-compression-resistance-priority