I have a UIRefreshControl
in a UITableViewController
. Is there any way I can detect if a user begins to drag the View down to refresh the content?
I do not mean the beginRefreshing
method. I want to be able to detect when a user begins to drag down - like when the circle fills up before the beginRefreshing
method is called. Is this possible?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- SwiftUI: UIImage (QRCode) does not load after call
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Using if let syntax in switch statement
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Enum with associated value conforming to CaseItera
- Swift - hide pickerView after value selected
- Is there a Github markdown language identifier for
As you have implemented
UITableViewDelegate
protocol you can also implementUIScrollViewDelegate
which is called on scroll or drag.Objective C
or
Swift
or
Implement
UIRefreshControl
withoutUITableViewController
Add a scrollview and put this code in yourviewDidLoad
Add this method