简体   繁体   中英

Constrain view to bottom of status bar

How can I constrain the top of my content view to below the status bar? I have tried using SafeArea.Top = StackView.Top (the content showing under the status bar is in a StackView), but the result is as in the image below. (I'm using a Storyboard with Use Safe Area Layout Guides checked)

状态栏下的内容

供以后参考:一旦我解决了“无法同时满足约束条件”的问题,该问题与我试图用SafeArea.Top = StackView.Top约束的UIStackView中嵌入的UIStackViews一样,约束将按预期开始工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM