英文:
UINavigationBar Scrolling behaviour is not working properly
问题
The issue you're facing seems related to the behavior of the UINavigationBar
and scrolling appearance when using a UITableView
within a UIStackView
. In screens without the UIStackView
, the navigation bar works properly and has a visible underline separator.
However, when you use a UITableView
within a UIStackView
, you encounter problems with the navigation bar. You've tried various solutions from different sources, but none of them have resolved the issue.
Here are the key points from your provided information:
- Screens without
UIStackView
: Navigation bar works properly, and there's a visible underline separator. - Screens with
UIStackView
: Navigation bar has issues, and you've tried multiple solutions without success.
Please let me know if you need more specific information or if you have a particular question related to this issue.
英文:
UINavigationBar
scrolling
appearance
behaviour is not working properly in one screen where i use UITableView
within UIStackView
. In other screens where Only UITableView
used there Scrolling behaviour is working properly and underLine separator is visible.
- Without
UIStackView
, where navigationBar working properly
> Screen's visible design in the Device.
> StoryBoard
UI of above screenshot, Games Screen.
As above ScreenShot when we scroll to Top Edge
, there's a visible underline to the NavigationBar
.
UITableView
withinUIStackView
, where I'm getting issue
> StoryBoard Interface
> When i set UIStackView.top = superview.top
> When i set UIStackView.top = safeArea.top
- I've applied multiple solutions from Various source, but none of Any is working for me.
> Also tried below solutions.
答案1
得分: 0
我已通过更改控件堆栈的顺序来解决了这个问题,只需将 UITableView
放在 UIStackView
之外,它就会按预期完美工作。
UIStoryBoard
- 布局可见性
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论