UINavigationBar滚动行为不正常。

huangapple go评论78阅读模式
英文:

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.

UINavigationBar滚动行为不正常。

> StoryBoard UI of above screenshot, Games Screen.

UINavigationBar滚动行为不正常。

As above ScreenShot when we scroll to Top Edge, there's a visible underline to the NavigationBar.

  • UITableView within UIStackView, where I'm getting issue

> StoryBoard Interface

UINavigationBar滚动行为不正常。
> When i set UIStackView.top = superview.top

UINavigationBar滚动行为不正常。

> When i set UIStackView.top = safeArea.top

UINavigationBar滚动行为不正常。

  • I've applied multiple solutions from Various source, but none of Any is working for me.

> Also tried below solutions.

  1. tab navigation bar changes after upgrading to xcode 13 ios 15
  2. iOS 15 Navigation Bar Transparent
  3. Navigation bar is transparent when scrolling starts in iOS15 only
  4. Transparent iOS navigation bar
  5. iOS 15 Navigation Bar Transparent issue

答案1

得分: 0

我已通过更改控件堆栈的顺序来解决了这个问题,只需将 UITableView 放在 UIStackView 之外,它就会按预期完美工作。

  • UIStoryBoard

UINavigationBar滚动行为不正常。

  • 布局可见性

UINavigationBar滚动行为不正常。

英文:

I've resolved the issue by changing order of the controls stack, just putted UITableView outSide of the UIStackView and it's working perfectly as expected.

  • UIStoryBoard

UINavigationBar滚动行为不正常。

  • Layout visibility

UINavigationBar滚动行为不正常。

huangapple
  • 本文由 发表于 2023年5月25日 15:15:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/76329744.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定