ios-datePickerView.zip
-(void)creatDatePicker { __weak NextViewController * weakself=self; self.datePicker =[[[NSBundle mainBundle] loadNibNamed:@"DatePickerView" owner:self options:0] lastObject]; self.datePicker.frame =CGRectMake(0, self.view.frame.size.height-260, self.view.frame.size.width, 260); self.datePicker.Datetitle =@"日期选择"; self.datePicker.cancelBlock = ^{ [UIView animateWithDuration:5 animations:^{ [weakself.datePicker removeFromSuperview]; }]; }; self.datePicker.sureBlock = ^(NSString *selectDateStr) { [weakself.showDateLabel setText:selectDateStr]; [UIView animateWithDuration:5 animations:^{ [weakself.datePicker removeFromSuperview]; }]; }; [self.view addSubview:self.datePicker]; } 哪里需要直接调用此方法即可
- 1
- 粉丝: 509
- 资源: 1万+
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助