Jerry0523 / Jwrefreshcontrol
Licence: mit
A refresh control(header & footer of UIScrollview) for iOS app.
Stars: ✭ 17
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Jwrefreshcontrol
Xcodebenchmark
XcodeBenchmark measures the compilation time of a large codebase on iMac, MacBook, and Mac Pro
Stars: ✭ 736 (+4229.41%)
Mutual labels: cocoapods
Nimbus
The iOS framework that grows only as fast as its documentation
Stars: ✭ 6,496 (+38111.76%)
Mutual labels: cocoapods
Font Awesome Swift
Font Awesome swift library for iOS.
Stars: ✭ 743 (+4270.59%)
Mutual labels: cocoapods
Jsonhelper
✌ Convert anything into anything in one operation; JSON data into class instances, hex strings into UIColor/NSColor, y/n strings to booleans, arrays and dictionaries of these; anything you can make sense of!
Stars: ✭ 792 (+4558.82%)
Mutual labels: cocoapods
Parallaxheader
Simple way to add parallax header to UIScrollView/UITableView written in Swift.
Stars: ✭ 808 (+4652.94%)
Mutual labels: cocoapods
Zephyr
Effortlessly synchronize UserDefaults over iCloud.
Stars: ✭ 722 (+4147.06%)
Mutual labels: cocoapods
Sdwebimageflplugin
A SDWebImage plugin to support GIF using FLAnimatedImage and category
Stars: ✭ 16 (-5.88%)
Mutual labels: cocoapods
Cyltabbarcontroller
[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
Stars: ✭ 6,605 (+38752.94%)
Mutual labels: cocoapods
Bfkit
BFKit is a collection of useful classes and categories to develop Apps faster.
Stars: ✭ 811 (+4670.59%)
Mutual labels: cocoapods
Nightnight
Elegant way to integrate night mode to swift projects
Stars: ✭ 771 (+4435.29%)
Mutual labels: cocoapods
Lcactionsheet
一款简约而不失强大的 ActionSheet,微博、微信和 QQ 都采用了极其类似的样式,完全支持 Swift。
Stars: ✭ 809 (+4658.82%)
Mutual labels: cocoapods
Blockhook
Hook Objective-C blocks. A powerful AOP tool.
Stars: ✭ 742 (+4264.71%)
Mutual labels: cocoapods
Greedo Layout For Ios
Full aspect ratio grid layout for iOS
Stars: ✭ 837 (+4823.53%)
Mutual labels: cocoapods
Statusalert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way.
Stars: ✭ 809 (+4658.82%)
Mutual labels: cocoapods
JWRefreshControlDemo
A refresh control(refresh header & footer for scrollview) for iOS app.
Usage
Add a refresh header
self.tableView.addRefreshHeader { [weak self] (header) in
//fetch data and reload UI
}
Add a refresh footer
self.tableView.addRefreshFooter { [weak self] (footer) in
//fetch data and reload UI
}
Custom Content View Supported
self.webView.scrollView.addCustomRefreshHeader { [weak self] (header: RefreshHeaderControl<SloganHeaderContentView>) in
self?.webView.reload()
header.success()
}
Completion Handler
- Notify refresh successfully
self.tableView.refreshHeader.success()
- Notify refresh error
self.tableView.refreshHeader.error("Network Error")
- Notify no more data
self.tableView.refreshFooter.pause("No More Data")
- Notify fetch task to stop
self.tableView.refreshHeader.stop()
Installation with CocoaPods
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries. You can install it with the following command:
$ gem install cocoapods
Podfile
To integrate JWIntent into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'JWRefreshControl'
Then, run the following command:
$ pod install
License
(MIT license)
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].