4 Star 4 Fork 3

曾宪华/PathCover

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

image image

=========

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 is the recommended methods of installation PathCover, just add the following line to Profile:

pod 'PathCover', '~> 0.1.2'

How to use

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.

The MIT License (MIT) Copyright (c) 2014 JackTeam Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

PathCover is pull down refresh and a parallax top view with real time blur effect to any UITableView, inspired by Path for iOS. 展开 收起
Objective-C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Objective-C
1
https://gitee.com/iamking/PathCover.git
git@gitee.com:iamking/PathCover.git
iamking
PathCover
PathCover
master

搜索帮助

Cb406eda 1850385 E526c682 1850385