网站/小程序/APP个性化定制开发,二开,改版等服务,加扣:8582-36016

类似温度计的竖式显示进度条

应用介绍

    源码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];

    立即下载

    请到会员中心签到后即可获得免费下载!

    相关下载

    评论 共有 0 条评论

    暂无评论
    0
    0
    0
    立即
    投稿
    发表
    评论
    返回
    顶部