Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JackTeam/PathCover
PathCover is pull down refresh and a parallax/zooming top view with real time blur effect to any UITableView, inspired by Path for iOS.
https://github.com/JackTeam/PathCover
Last synced: 3 months ago
JSON representation
PathCover is pull down refresh and a parallax/zooming top view with real time blur effect to any UITableView, inspired by Path for iOS.
- Host: GitHub
- URL: https://github.com/JackTeam/PathCover
- Owner: JackTeam
- License: mit
- Created: 2014-02-07T08:06:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-16T17:25:52.000Z (over 8 years ago)
- Last Synced: 2024-07-19T11:03:43.448Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 2.05 MB
- Stars: 414
- Watchers: 32
- Forks: 65
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![image](https://github.com/JackTeam/PathCover/raw/master/Screenshots/PathCover.gif)
![image](https://github.com/JackTeam/PathCover/raw/master/Screenshots/PathCoverZooming.gif)=========
PathCover is pull down refresh and a parallax/zooming top view with real time blur effect to any UITableView, inspired by Path for iOS.
Completely created using UIKit/QuartzCore/Accelerate framework, AudioToolbox framework to play sound to refreshing.
Easy to drop into your project.
You can add this feature to your own project, `PathCover` is easy-to-use.
## Requirements ##
PathCover requires Xcode 5, targeting either iOS 5.0 and above, ARC-enabled.
## Profile
[CocosPods](http://cocosPods.org) is the recommended methods of installation PathCover, just add the following line to `Profile`:
```
pod 'PathCover', '~> 0.1.3'
```## How to use ##
```objc
zooimg effect property to user, but if you user zooimg effect, will be dissmiss parallax effect.#import "XHPathCover.h"
@property (nonatomic, strong) XHPathCover *pathCover;
_pathCover = [[XHPathCover alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 250)];
[_pathCover setBackgroundImage:[UIImage imageNamed:@"MenuBackground"]];
[_pathCover setAvatarImage:[UIImage imageNamed:@"meicon.png"]];
[_pathCover setInfo:[NSDictionary dictionaryWithObjectsAndKeys:@"Jack", XHUserNameKey, @"1990-10-19", XHBirthdayKey, nil]];
self.tableView.tableHeaderView = self.pathCover;
[_pathCover setHandleRefreshEvent:^{
// refresh your data sources
}];
#pragma mark - scroll delegate- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
[_pathCover scrollViewDidScroll:scrollView];
}- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
[_pathCover scrollViewDidEndDecelerating:scrollView];
}- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
[_pathCover scrollViewDidEndDragging:scrollView willDecelerate:decelerate];
}- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
[_pathCover scrollViewWillBeginDragging:scrollView];
}```
## Lincense ##`PathCover` is available under the MIT license. See the LICENSE file for more info.