iOS 11问题与刷新控制器和navigationBar有关,它们更喜欢将LargeTitles设置为true [英] iOS 11 issues with Refresh Controller and navigationBar that has prefersLargeTitles set to true

查看:171
本文介绍了iOS 11问题与刷新控制器和navigationBar有关,它们更喜欢将LargeTitles设置为true的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用导航控制器,在该导航控制器中,我有一个带有tableview的VC,它拥抱superView的顶部,底部,左侧和右侧。当我将 self.navigationController?.navigationBar.prefersLargeTitles 设置为false时,一切正常。但是当我把它设置为true时,我必须真正拖动才能让我的刷新控制器触发刷新。

I am using a navigation controller and within that navigation controller, I have a VC with a tableview that is hugging the top, bottom, left and right sides of the superView. When I have self.navigationController?.navigationBar.prefersLargeTitles set to false, everything works fine. But when I set it to true, I have to drag really really far down to get my refresh controller to trigger the refresh.

这可以通过简单地点击一个单元来修复然后进入详细视图,然后按详细视图中的后退按钮返回到主桌面视图和复习的vc。完成后,拉动刷新与大型标题完美配合。非常奇怪!

This is fixed by simply tapping one cell which then goes into the detail view and then pressing the back button from the detail view to go back to the vc with the main tableview and refresher. After doing that the pull to refresh works perfectly with the large titles. Very weird!

我有一个非常基本的tableview设置。我的实际项目有一个更复杂的设置,但为了隔离这个问题,我创建了一个更简单的项目,具有相同的tableview并且问题仍然存在。有没有人见过这个问题?我认为这是苹果公司的问题,但我想检查一下我是否做错了什么。

I have a very basic setup of my tableview. My actual project has a more complex setup but in order to isolate this problem, I created a much simpler project with the same tableview and the issue persisted. Has anybody else seen this issue? I am thinking it is an issue on apple's end but I wanted to check if I was doing something wrong on my end.

我使用swift 4和iOS 11.0.2和Xcode 9.

I am using swift 4 and iOS 11.0.2 with Xcode 9.

动画师开始动画但是当它获得某个(它应该刷新的点)时,它就会停止。当我继续进一步拉下来时,它会刷新。但它应该早一点完成。我必须下拉到导航栏几乎延伸到整个屏幕长度的位置。查看截图。

The animator starts to animate but when it gets a certain (the point where it should refresh), it just stops. When I keep on pulling down further and further, it does the refresh. But it should have done it much earlier. I have to pull down to the point where the nav bar stretches to almost the entire length of the screen. See the screenshot.

推荐答案

您可以尝试设置self.extendedLayoutIncludesOpaqueBars = YES;

you can try to set self.extendedLayoutIncludesOpaqueBars = YES;

这篇关于iOS 11问题与刷新控制器和navigationBar有关,它们更喜欢将LargeTitles设置为true的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆