Pull-to-Refresh.Rentals-iOS能够便捷地为列表视图提供有趣漂亮的日出等待动画。很适合搭配色彩缤纷的列表视图。
使用方法:
#import "YALSunnyRefreshControl.h" @property (nonatomic,strong) YALSunnyRefreshControl *sunnyRefreshControl; - (void)viewDidLoad { [super viewDidLoad]; [self setupRefreshControl]; } -(void)setupRefreshControl{ self.sunnyRefreshControl = [YALSunnyRefreshControl attachToScrollView:self.tableView target:self refreshAction:@selector(sunnyControlDidStartAnimation)]; } -(void)sunnyControlDidStartAnimation{ // start loading something } -(IBAction)endAnimationHandle{ [self.sunnyRefreshControl endRefreshing]; }