Creates method to dismiss regular picker view to avoid relying on dismissDatePicker method

This commit is contained in:
Robinson, Blake 2019-05-31 10:46:44 -04:00
parent 697362f1a3
commit 674dc70b84
2 changed files with 5 additions and 0 deletions

View File

@ -116,6 +116,7 @@
- (void)inputFromDatePickerFromDate:(nullable NSDate *)fromDate toDate:(nullable NSDate *)toDate showFromDateAsDefaultInput:(BOOL)show;
- (void)setDatePickerFromDate:(nullable NSDate *)fromDate toDate:(nullable NSDate *)toDate;
- (nonnull NSDate *)dismissDatePicker;
- (void)dismissPicker;
//get all enabled textfields, can be pairly used with the primary button's handleEnablingWithTextFields if you only want the enable testfield's validation to be tested
+ (nullable NSArray *)getEnabledTextfields:(nullable NSArray <MFTextField *>*)textFieldToDetermine;

View File

@ -181,6 +181,10 @@
return pickedDate;
}
- (void)dismissPicker {
[self.textField resignFirstResponder];
}
- (void)setErrorMessage:(NSString *)errorMessage {
[MVMCoreDispatchUtility performBlockOnMainThread:^{