Need help with Pull-to-Refresh.Rentals-iOS?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Yalantis
2.2K Stars 276 Forks MIT License 76 Commits 8 Opened issues

Description

This project aims to provide a simple and customizable pull to refresh implementation. Made in Yalantis

Services available

!
?

Need anything else?

Contributors list

Pull-to-Refresh.Rentals-IOS

This project aims to provide a simple and customizable pull to refresh implementation.

Yalantis

Check this project on Dribbble
Check this project on Behance

alt text

Installing with CocoaPods

pod 'Pull-to-Refresh.Rentals-IOS', '~> 1.0'

Usage

For a working implementation, Have a look at the Sample Project - sample

  1. Add folder YALSunnyRefreshControll to your project.
  2. Implement header and setup YALSunnyRefreshControl as a property.
  3. Init and associate YALSunnyRefreshControl with your UITableView or UICollectionView.
  4. Add images from Images.xcassets folder in Sample Project.
#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: * sun.png - Sun image * sky.png - background image * buildings.png - foreground image

Compatibility

  • IOS 7-9

Changelog

Version: 1.0

  • Initial Build

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

Copyright 2017, Yalantis

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.