类似温度计的竖式显示进度条
应用介绍
源码timeLineiOS,简单的竖式显示进度条,可用在如进展图, 按照官方的例子,并不能简单调用就出很炫的效果,其接口太少,调用不方便. 但实现方法可以做为参考.要想出其它效果,可以在它基础上修改。 使用方法: 复制 TimeLineControl目录 导入头文件 import "TimeLineViewControl.h" //设置左轴 NSArray *times = @[@"sun",@"mon",@"tue",@"wed",@"thr",@"fri",@"sat",@"frankye"]; //设置右轴 NSArray *descriptions = @[@"state 1",@"state 2",@"state 3",@"state 4",@"very very long and very very detailed description 0f state 5",@"state 6",@"state 7",@"mobTest"]; //初始化 TimeLineViewControl *timeline = [[TimeLineViewControl alloc] initWithTimeArray:times andTimeDescriptionArray:descriptions andCurrentStatus:4//当前状态 andFrame:CGRectMake(50, 120, self.view.frame.size.width - 30, 200)]; //仅仅是加入在view中 timeline.center = self.view.center; [self.view addSubview:timeline];

©软件著作权归作者所有。本站所有内容均来源于网络,不得违法使用,仅供学习使用,请支持正版!
转载请注明出处: 662P » 类似温度计的竖式显示进度条
发表评论 取消回复