最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - LaunchScreen.storyboard: Bottom safe area constraint not working for UIView (Xcode 16) - Stack Overflow

programmeradmin2浏览0评论

I'm creating a new iOS project in Xcode. In the LaunchScreen.storyboard, I added a UIView and tried to make it fill the entire screen including safe areas (top and bottom). Here's what I did:

Dragged a UIView to the storyboard.

Added constraints:

Top: 0 to Safe Area's Top

Leading: 0 to Superview's Leading

Trailing: 0 to Superview's Trailing

Bottom: 0 to Safe Area's Bottomenter image description here

But the bottom safe area constraint doesn't work – the view stops at the bottom of the screen, ignoring the safe area (e.g., leaves space for iPhone’s Home Indicator). .png

.png

发布评论

评论列表(0)

  1. 暂无评论