Merge branch 'feature/add_dismiss_picker_method' into 'develop'

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

See merge request BPHV_MIPS/mvm_core_ui!80
This commit is contained in:
panxi 2019-05-31 13:58:58 -04:00
commit 6bf0477558
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:^{