在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:sergigracia/KoaPullToRefresh开源软件地址:https://github.com/sergigracia/KoaPullToRefresh开源编程语言:Objective-C 98.5%开源软件介绍:[Not maintained.] KoaPullToRefreshKoaPullToRefresh is a minimal & easily customizable pull-to-refresh control. You can change the font, colors, size and even replace the spinning icon using FontAwesome. This library is very easy to add and customize. This pull to refresh control is developed for Teambox and is based on the SVPullToRefresh and use ios-fontawesome to work with font awesome icons. InstallationFrom CocoaPods
Manually
UsageAdding KoaPullToRefreshAdd this in your [tableView addPullToRefreshWithActionHandler:^{
// Tasks to do on refresh. Update datasource, add rows, …
// Call [tableView.pullToRefreshView stopAnimating] when done.
}]; Adding background color: [tableView addPullToRefreshWithActionHandler:^{
// Tasks to do on refresh. Update datasource, add rows, …
// Call [tableView.pullToRefreshView stopAnimating] when done.
} withBackgroundColor:[UIColor blueColor]]; Adding the height of showed pixels: [tableView addPullToRefreshWithActionHandler:^{
// Tasks to do on refresh. Update datasource, add rows, …
// Call [tableView.pullToRefreshView stopAnimating] when done.
} withBackgroundColor:[UIColor blueColor] withPullToRefreshHeightShowed:2]; Customize KoaPullToRefreshSet the color of fontAwesome icon and text: [self.tableView.pullToRefreshView setTextColor:[UIColor whiteColor]]; Set the text font: [self.tableView.pullToRefreshView setTextFont:[UIFont fontWithName:@"OpenSans-Bold" size:14]]; Set the font awesome icon: [self.tableView.pullToRefreshView setFontAwesomeIcon:@"icon-refresh"]; Set titles: [self.tableView.pullToRefreshView setTitle:@"Pull" forState:KoaPullToRefreshStateStopped];
[self.tableView.pullToRefreshView setTitle:@"Release" forState:KoaPullToRefreshStateTriggered];
[self.tableView.pullToRefreshView setTitle:@"Loading" forState:KoaPullToRefreshStateLoading]; Manage KoaPullToRefreshStart animating KoaPullToRefresh ( [self.tableView.pullToRefreshView startAnimating]; Stop animating KoaPullToRefresh [self.tableView.pullToRefreshView stopAnimating]; Requirements
Contact
LicenseKoaPullToRefresh is available under the MIT License. See the License file for more info. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论