RHRefreshControl is just another simple custom RefreshControl which allow you to customize the appearance and behavior of RefreshControl for your app. With this simple library, you would save few hours to write code to implement with UIScrollView.
- Install with Cocoapods
platform :ios, "6.0"
pod 'RHRefreshControl'
- Documentation will provice in the future
RHRefreshControl *refreshControl = [[RHRefreshControl alloc]
initWithConfiguration:refreshConfiguration];
Preset Style
Configuration
RHRefreshControlConfiguration *refreshConfiguration = [[RHRefreshControlConfiguration alloc] init];
refreshConfiguration.refreshView = RHRefreshViewStylePinterest;
Your own view
Configuration
CutomRefreshView *customRefreshView = [[CutomRefreshView alloc]
initWithFrame:CGRectMake(0, 0, 320, 60)];
RHRefreshControlConfiguration *refreshConfiguration = [[RHRefreshControlConfiguration alloc] init];
refreshConfiguration.refreshView = customRefreshView;
- Please check tutorial.
- I would like to thank Erik S for giving me alot ideas and development tips.
See LICENSE.
- Supporting UIScrollView