iOS时间选择器 ,宫格方式展示商品可服务的时间范围:YLTimePicker

jopen 9年前

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.open-open.com/lib/view/home/1442992043654