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:
commit
6bf0477558
@ -116,6 +116,7 @@
|
|||||||
- (void)inputFromDatePickerFromDate:(nullable NSDate *)fromDate toDate:(nullable NSDate *)toDate showFromDateAsDefaultInput:(BOOL)show;
|
- (void)inputFromDatePickerFromDate:(nullable NSDate *)fromDate toDate:(nullable NSDate *)toDate showFromDateAsDefaultInput:(BOOL)show;
|
||||||
- (void)setDatePickerFromDate:(nullable NSDate *)fromDate toDate:(nullable NSDate *)toDate;
|
- (void)setDatePickerFromDate:(nullable NSDate *)fromDate toDate:(nullable NSDate *)toDate;
|
||||||
- (nonnull NSDate *)dismissDatePicker;
|
- (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
|
//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;
|
+ (nullable NSArray *)getEnabledTextfields:(nullable NSArray <MFTextField *>*)textFieldToDetermine;
|
||||||
|
|||||||
@ -181,6 +181,10 @@
|
|||||||
return pickedDate;
|
return pickedDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)dismissPicker {
|
||||||
|
[self.textField resignFirstResponder];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)setErrorMessage:(NSString *)errorMessage {
|
- (void)setErrorMessage:(NSString *)errorMessage {
|
||||||
|
|
||||||
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user