- 中文
- English
本组件用于选择月份或日期范围
iPhone / iPad
YCDateFilter支持CocoaPods.
要安装它,只需将以下行添加到您的Podfile中:
pod 'YCDateFilter'
@interface YCViewController ()
@property (nonatomic, strong) YCDateFilterViewController *filterVc;
@end
self.filterVc.modalPresentationStyle = UIModalPresentationOverFullScreen;
// 选择器回调
self.filterVc.dateRangeBlock = ^(NSString *startTime, NSString *endTime, NSString *showString) {
};
[self presentViewController:self.filterVc animated:YES completion:nil];
YCDateFilter is available under the MIT license. See the LICENSE file for more info.