代码库> 视图动画> 今天写的一个下拉组件,基于Path App的另类下拉,有需求的可以看看
今天写的一个下拉组件,基于Path App的另类下拉,有需求的可以看看
关注
查看次数:4289 下载次数:0
上传时间:2014-02-07 大小:
cvpic('https://github.com/JackTeam/PathCover/raw/master/Screenshots/PathCover.gif','','700','700')
PathCover
PathCover is pull down refresh and a parallax 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.
english: CocosPods is the recommended methods of installation XHPathCover, just add the following line toProfile:
Profile
[pre]pod 'XHPathCover'[/pre]
How to use
[pre]#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];}[/pre]

Lincense
PathCover is available under the MIT license. See the LICENSE file for more info.
收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
下载过该代码的还下载了
综合评论
提示
sina weixin mail 回到顶部