Skip to content
HAHAKeaPublic

About

帮助开发者方便集成导航指示器,用于管理视图页面

Resources

Stars

563 stars

Watchers

25 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

HACursor

Introduction:

HACursor,是一个对横向ScrollView中的视图进行管理的UI控件。只要几行代码就可以集成类似于网易新闻对主题页面进行排序,删除操作的功能。

Presentation:

滚动效果

()

排序效果

()

删除效果

()

Usage:

代码例子:其中(必选)为必须设置的属性,其余可根据需要来设置

HACursor *cursor = [[HACursor alloc]init];
cursor.frame = CGRectMake(0, 20, self.view.width, 45);

//显示的标题栏的标题(必选!!)
cursor.titles = self.titles; 
//需要管理的子页面(必选!!)
cursor.pageViews = self.pageViews;
//设置rootScrollView的高度(必选!!)
cursor.rootScrollViewHeight = self.view.frame.size.height - 65;

//设置标题普通状态下的颜色
cursor.titleNormalColor = [UIColor whiteColor];
//设置标题选中状态下的颜色
cursor.titleSelectedColor = [UIColor redColor];
//是否需要显示排序的按钮
cursor.showSortbutton = YES;
//设置背景颜色
cursor.backgroundColor = [UIColor yellowColor];
//设置最小化的字体,默认的最小值是5,小于默认值的话按默认值设置,(默认的最小值 < 设置值 <默认的最大值) 按设置的值处理
cursor.minFontSize = 10.0;
//设置最大化的字体,默认的最大值是25,小于默认值的话按默认值设置,大于默认值按设置的值处理
cursor.maxFontSize = 30.0;
//设置是否需要渐变字体的大小
cursor.isGraduallyChangFont = NO;
//设置是否需要渐变字体的颜色
//在isGraduallyChangFont为NO的时候,isGraduallyChangColor不会有效果
cursor.isGraduallyChangColor = NO;
[self.view addSubview:cursor];

Requirement:

  • iOS7.0以上
  • Xcode 6

About

帮助开发者方便集成导航指示器,用于管理视图页面

Resources

Stars

563 stars

Watchers

25 watching

Forks

Releases

Packages

Contributors

Languages