I am using this tutorial to implement a pull-to-refresh behavior with the RefreshControl
. I am using a Navigation Bar
. When using normal titles everything works good. But, when using "Prefer big titles" it doesn't work correctly as you can see in the following videos. Anyone knows why? The only change between videos is the storyboard check on "Prefer Large Titles".
相关问题
- “Zero out” sensitive String data in Swift
- SwiftUI: UIImage (QRCode) does not load after call
- Get the NSRange for the visible text after scroll
- Custom UITableview cell accessibility not working
- UIPanGestureRecognizer is not working in iOS 13
相关文章
- UITableView dragging distance with UIRefreshContro
- Using if let syntax in switch statement
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Enum with associated value conforming to CaseItera
- Swift - hide pickerView after value selected
- Is there a Github markdown language identifier for
At the end what worked for me was:
In order to fix the RefreshControl progress bar disappearing bug with large titles:
In order to fix the list offset after
refreshcontrol.endRefreshing()
:If you were using
tableView.tableHeaderView = refreshControl
ortableView.addSubView(refreshControl)
you should try usingtableView.refreshControl = refreshControl
I've faced the same problem. Call refreshControl endRefreshing before calling further API.
I had this issue too, and i fixed it by embedded my scrollView (or tableView \ collectionView) inside stackView, and it's important that this stackView's top constraint will not be attached to the safeArea view (all the other constraints can). the top constraint should be connect to it's superview or to other view.
Problem can be solved if add tableview or scroll view as root view in UIViewController hierarchy (like in UITableViewController)
where customView is UITableView or UICollectionView
The only working solution for me is combining Bruno's suggestion with this line of code:
tableView.contentInsetAdjustmentBehavior = .always