iOS 時間軸:timeLineiOS
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];
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!