Skip to content

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

Notifications You must be signed in to change notification settings

mengxianliang/XLZoomHeader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published