background:
To use a refresh control in the swift project, the recommendation on the Internet is to use MJRefresh directly, so MJRefresh was imported in the swift project and used.
Specific use:
(Use cocoaPods to inherit MJRefresh into the project. Although MJRefresh is an OC version, it can be used directly in a swift project without bridging)
- Add refresh and load view to UITableView
2. Refresh and load method
This article ends here. I hope that everyone will work less overtime and get more wages, that male compatriots have girlfriends, and female compatriots have boyfriends.