问题
这里指,当将内容向上滑动时文字与状态栏重合
,而非一开始就重合
。
像这样:
解决
查阅官方指南https://developer.apple.com/design/human-interface-guidelines/ios/bars/status-bars/,给出如下建议:
总结下来,
- 使用导航栏,或
- 添加背景图,或
- 模糊状态栏。
使用导航栏
StoryBoard中选中当前Controller,选择Editor-> Embed in-> Navigation Controller。