iOS 时间轴:timeLineiOS

jopen 10年前

timeLineiOS  是下拉时间轴控件,支持进展动画。

要使用它,在你的应用程序按照此步骤:

  • drag TimeLineControl folder to project
  • import "TimeLineViewControl.h"
  • and initialize view

NSArray *times = @[@"sun",@"mon",@"tue",@"wed",@"thr",@"fri",@"sat"];  NSArray *descriptions = @[@"state 1",@"state 2",@"state 3",@"state 4",@"very very long description if state 5",@"state 6",@"state 7"];  TimeLineViewControl *timeline = [[TimeLineViewControl alloc] initWithTimeArray:times                                                         andTimeDescriptionArray:descriptions                                                                andCurrentStatus:4];  timeline.center = self.view.center;  [self.view addSubview:timeline];

iOS 时间轴:timeLineiOS

项目主页:http://www.open-open.com/lib/view/home/1413518375825