iOS時間選擇器 ,宮格方式展示商品可服務的時間范圍:YLTimePicker

jopen 9年前發布 | 11K 次閱讀 iOS開發 移動開發 YLTimePicker

Logo

YLTimePicker

  • A display goods time control, displaying products to service time. If you have questions, please contact 1045329617 @qq.com
  • 一個展示商品時間的控件,展示商品可服務的時間。如有問題請聯系1045329617@qq.com

GitHub:songjizu001

Getting Started【開始使用】

Features【能做什么】

  • YLTimePicker *一個展示商品時間的控件,展示商品可服務的時間。如有問題請聯系1045329617@qq.com *工程中使用了Masonry純代碼自動布局的框架如果不想使用可以更改成frame

Examples【示例】

(demo) (demo)

How to use【實現方式】

@interface YLTimePicker ()<PopTimeViewDelegate>

@property(nonatomic,strong)NSMutableArray * dateArrM;

@property(nonatomic,strong)NSMutableArray * timeArrM;

@property(nonatomic,strong)YLDateScrollView * scroll;

@property(nonatomic,assign)int  count;//測試代碼

@end

/***********************************************/


PopTimeView * pop =[[PopTimeView alloc]initWithDateArray:_dateArrM delegate:self DateDetailsArray:_timeArrM andViewShowTag:self.count];

[pop showInView:self.view];


- (void)didClickOnDateButton:(NSInteger )dateButtonIndex  andDateDetailsButton:(NSInteger )DateDetailsButtonIndex andPopTimeView:(PopTimeView *)PopTimeView{
NSArray * arry = self.timeArrM[dateButtonIndex];
NSLog(@"\n%@\n%@",arry[DateDetailsButtonIndex][@"yy_name"],arry[DateDetailsButtonIndex][@"label"]);

[PopTimeView tappedCancelWithStatus:YES];
}

More use cases【更多用法】

  • Please reference toPopTimeView.handDateView.h
  • Modification of internal parameters to fit your needs

項目主頁:http://www.baiduhome.net/lib/view/home/1442992043654

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