All Projects → mengxianliang → XLZoomHeader

mengxianliang / XLZoomHeader

Licence: other
下拉放大背景图的顶部视图,适用于UIScrollView及其子类

Programming Languages

objective c
16641 projects - #2 most used programming language

XLZoomHeader

说明

适用于UIScrollView、UITableView、UICollectionView、UIWebView(即UIScrollV及其子类)的页面头部视图。

显示效果

正常显示 设置背景图缩进
image image

使用方法

新建一个XLZoomHeader的子类,TestZoomHeader,实例化后赋值给xl_zoomHeader属性,然后在XLZoomHeader内部设置背景图背景图缩进属性

TestZoomHeader *header = [[TestZoomHeader alloc] initWithFrame:CGRectMake(0, 0, scrollView.bounds.size.width, 150)];
scrollView.xl_zoomHeader = header;

参数说明:

backgroundImage :设置背景图图片
backgroundImageInsets:背景图缩进

UI tools XLUIKit

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].