<commit_before># What is this

UITextField/UITextView subclass.

![UITextField+DatePicker](https://monosnap.com/image/TSwA3hPoDkdrr1jJRnGaaFQpI.png)

## Usage

* D&D SubClass/* to your project

### UITextFieldWithDatePicker

UITextFieldWithDatePicker is UITextField subclass

    UITextFieldWithDatePicker *dateTextField = [[UITextFieldWithDatePicker alloc]init];
    // set datePickerMode
    dateTextField.delegate = self;
    // set DatePicker type
    dateTextField.datePickerMode = UIDatePickerModeDate;

if set ``UIDatePickerModeTime``

    dateTextField.minuteInterval = 60; // default minuteInterval

You can pass original dateformatter

    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    dateFormatter.calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    [dateFormatter setDateFormat:@"yyyy-MM-dd"];
    dateTextField.dateFormatter = dateFormatter;

manually update TextField

    [dateTextField updateText];<commit_msg>add Usage<commit_after># What is this

UITextField/UITextView subclass.

![UITextField+DatePicker](https://monosnap.com/image/TSwA3hPoDkdrr1jJRnGaaFQpI.png)

## Usage

* D&D SubClass/* to your project

### UITextFieldWithDatePicker

UITextFieldWithDatePicker is UITextField subclass

    UITextFieldWithDatePicker *dateTextField = [[UITextFieldWithDatePicker alloc]init];
    // set datePickerMode
    dateTextField.delegate = self;
    // set DatePicker type
    dateTextField.datePickerMode = UIDatePickerModeDate;

if set ``UIDatePickerModeTime``, you can set default minuteInterval :

    dateTextField.minuteInterval = 60; // default minuteInterval

You can pass original dateformatter

    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    dateFormatter.calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    [dateFormatter setDateFormat:@"yyyy-MM-dd"];
    dateTextField.dateFormatter = dateFormatter;

manually update TextField

    [dateTextField updateText];
{'fraction_non_alphanumeric': 0.08508508508508508, 'fraction_numerical': 0.004004004004004004, 'mean_word_length': 5.407051282051282, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2386219', 'n_tokens_mistral': 623, 'n_tokens_neox': 573, 'n_words': 127}