在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Yalantis/Pull-to-Refresh.Rentals-iOS开源软件地址:https://github.com/Yalantis/Pull-to-Refresh.Rentals-iOS开源编程语言:Objective-C 94.8%开源软件介绍:Pull-to-Refresh.Rentals-IOSThis project aims to provide a simple and customizable pull to refresh implementation. Check this [project on Dribbble] (https://dribbble.com/shots/1650317-Pull-to-Refresh-Rentals) #Installing with CocoaPods pod 'Pull-to-Refresh.Rentals-IOS', '~> 1.0' #Usage For a working implementation, Have a look at the Sample Project - sample
#import "YALSunnyRefreshControl.h"
@property (nonatomic,strong) YALSunnyRefreshControl *sunnyRefreshControl;
- (void)viewDidLoad {
[super viewDidLoad];
[self setupRefreshControl];
}
- (void)setupRefreshControl{
self.sunnyRefreshControl = [YALSunnyRefreshControl new];
[self.sunnyRefreshControl addTarget:self
action:@selector(sunnyControlDidStartAnimation)
forControlEvents:UIControlEventValueChanged];
[self.sunnyRefreshControl attachToScrollView:self.tableView];
}
- (void)sunnyControlDidStartAnimation{
// start loading something
}
- (IBAction)endAnimationHandle{
[self.sunnyRefreshControl endRefreshing];
}
#Customization To customize drawables you can change:
#Compatibility
ChangelogVersion: 1.0
Let us know!We’d be really happy if you send us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding the animation. P.S. We’re going to publish more awesomeness wrapped in code and a tutorial on how to make UI for iOS (Android) better than better. Stay tuned! License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论