Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/romaHerman/timeLineiOS
DropIn TimeLine with progress animatiom
https://github.com/romaHerman/timeLineiOS
Last synced: about 2 months ago
JSON representation
DropIn TimeLine with progress animatiom
- Host: GitHub
- URL: https://github.com/romaHerman/timeLineiOS
- Owner: romaHerman
- Created: 2014-10-01T07:39:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-09-13T08:00:21.000Z (over 5 years ago)
- Last Synced: 2024-04-14T15:19:45.073Z (9 months ago)
- Language: Objective-C
- Size: 136 KB
- Stars: 617
- Watchers: 27
- Forks: 88
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - timeLineiOS - DropIn TimeLine with progress animatiom. 【 [Priview](https://github.com/romaHerman/timeLineiOS/raw/master/output_ppeLRI.gif) 】 (OOM-Leaks-Crash / Uncategorized)
README
**TimeLine** control is a simple drop in solution to show progress of some event
e.g. track order![](https://github.com/romaHerman/timeLineiOS/blob/master/output_ppeLRI.gif)
To use it in your application **follow this steps**:
* drag TimeLineControl folder to project
* import "TimeLineViewControl.h"
* and initialize view```objective-c
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];
```To deal with autoLayOut I've used [Masonry](https://github.com/Masonry/Masonry) library. It lays inside Timeline control folder. You don't need to do some additional steps to deal with it, just something to be aware of =)
That is it!
You can check **ExampleProject** to see how timeline works
Test actions1