Simple use of MJRefresh in swift projects in iOS development

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)

  1. Add refresh and load view to UITableView
    write picture description here

2. Refresh and load method
write picture description here

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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324908838&siteId=291194637