[ios]Fixed the problem that the list was not automatically restored when the loading tag was pulled up under certain conditions #3300
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix the problem that when the list is under one piece of data, the loading label will be displayed by default in the drop-down refresh list
复现条件:
list标签数据不超过一屏时,同时存在refresh和loading标签,若上拉加载列表(没有更多数据),仅仅快速切换(100ms)loading标签的display属性由true为false,发现列表位置不会自动还原
原因:
Probably setContentOffset: has higher priority than setContentOffset:animated:
方案:
参考refresh标签的说明,针对displayState字段不同值,调整设置setContentOffset方式
Brief Description of the PR
Checklist