文章来源:淘论文网   发布者: 毕业设计   浏览量: 36



还可以点击去查询以下关键词:
[UIScrollVie]    [毕业]    [header]    [UIScrollVie毕业w header]   

项目介绍:

项目简介

MXParallaxHeader是一个简单的UIScrollView header类。

MXScrollView是一个UIScrollView的子类,能后从它的子视图中hook垂直滚动条,这样能添加一个视差header从而使视图层次变得复杂。

另外,开题报告,MXScrollViewController可以让你在任何UIViewController中添加一个MXParallaxHeader。

UIScrollView

MXScrollViewController

使用方法

如果你想使用这个项目,直接运行

pod try MXParallaxHeader
或者将这库clone,并在Example目录中运行pod install

在UIScrollView中添加一个视差header

UIImageView *headerView = [UIImageView new];
headerView.image = [UIImage imageNamed:@"success-baby"];
headerView.contentMode = UIViewContentModeScaleAspectFill;

UIScrollView *scrollView = [UIScrollView new];
scrollView.parallaxHeader.view = headerView;
scrollView.parallaxHeader.height = 150;
scrollView.parallaxHeader.mode = MXParallaxHeaderModeFill;
scrollView.parallaxHeader.minimumHeight = 20;

安装

该项目可以通过CocoaPods安装,在你的Podfile中添加如下内容:

pod "MXParallaxHeader"

github地址:https://github.com/maxep/MXParallaxHeader

开题报告


这里还有:


还可以点击去查询:
[UIScrollVie]    [毕业]    [header]    [UIScrollVie毕业w header]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/7616.docx
  • 上一篇:下拉刷新和无定制线滚动功能
  • 下一篇:基础星级毕业设计评级界面