| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // TimePickerPopupView.h
- // kneet2
- //
- // Created by Jason Lee on 11/24/15.
- // Copyright (c) 2015 ntels. All rights reserved.
- //
- @import UIKit;
- #import "CustomAlertView.h"
- #import "JDViewController.h"
- @class CustomCheckBox;
- @interface CustomDatePicker : UIDatePicker {
- BOOL _changed;
- }
- @end
- @interface TimePickerPopupView : CustomAlertView
- @property (weak, nonatomic) ItemModel *timeTrigger;
- @property (weak, nonatomic) NSMutableArray<ItemModel> *refConditions;
- //properties
- @property (weak, nonatomic) IBOutlet CustomDatePicker *timePicker;
- @property (strong, nonatomic) IBOutletCollection(CustomCheckBox) NSArray *chkDays;
- //methods
- - (id)initFromNib;
- + (NSString *)daysOfWeek:(NSArray *)chkDays;
- + (NSString *)daysOfWeekValue:(NSArray *)chkDays;
- + (BOOL)validateCondition:(NSArray *)chkDays;
- + (void)setDaysCondition:(NSMutableArray<ItemModel> *)conditions chkDays:(NSArray *)chkDays;
- @end
|