main thread
This commit is contained in:
parent
969d9601ab
commit
a1942f8468
@ -13,9 +13,7 @@ extension MFViewController: ObservingTextFieldDelegate {
|
|||||||
|
|
||||||
public extension MFViewController {
|
public extension MFViewController {
|
||||||
@objc func startValidation() {
|
@objc func startValidation() {
|
||||||
DispatchQueue.main.async { [weak self] in
|
(self as? FormHolderProtocol)?.formValidator?.validate()
|
||||||
(self as? FormHolderProtocol)?.formValidator?.validate()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func addFormParams(requestParameters: MVMCoreRequestParameters) {
|
@objc func addFormParams(requestParameters: MVMCoreRequestParameters) {
|
||||||
|
|||||||
@ -484,7 +484,9 @@
|
|||||||
- (void)newDataBuildAndUpdate {
|
- (void)newDataBuildAndUpdate {
|
||||||
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
[MVMCoreDispatchUtility performBlockOnMainThread:^{
|
||||||
[self newDataBuildScreen];
|
[self newDataBuildScreen];
|
||||||
[self startValidation];
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
|
[self startValidation];
|
||||||
|
});
|
||||||
self.needToUpdateUI = YES;
|
self.needToUpdateUI = YES;
|
||||||
[self.view setNeedsLayout];
|
[self.view setNeedsLayout];
|
||||||
}];
|
}];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user