- 中文
- English
This component is used to select a month or date range
iPhone / iPad
YCDateFilter is available through CocoaPods. To install it, simply add the following line to your 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.