# HeaderView **Repository Path**: liuhui.com/HeaderView ## Basic Information - **Project Name**: HeaderView - **Description**: 常见的滚动式图 - **Primary Language**: Objective-C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-09-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #HeaderView 项目中用到的头部的滚动式图,这里封装出来。 样式一: ![滑动的视图](http://git.oschina.net/uploads/images/2016/0926/165358_b23e70d6_473390.png "滑动的视图") 样式二: ![样式二](http://git.oschina.net/uploads/images/2016/0926/165447_0295b626_473390.png "样式二") 样式三: ![样式三](http://git.oschina.net/uploads/images/2016/0929/135532_897ad156_473390.png "样式三") 用法: //创建样式一的代码 LHCollectionView *v= [[LHCollectionView alloc]initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 200) dataSourceArray:array showType:showTypeWithTag]; v.delegate=self; [self.view addSubview:v]; //创建样式二的代码 LHCollectionView *v1= [[LHCollectionView alloc]initWithFrame:CGRectMake(0, 300, self.view.frame.size.width, 200) dataSourceArray:array showType:showTypeWithPageControl]; v1.delegate=self; [self.view addSubview:v1];