fix delegate nil

This commit is contained in:
Chris Yang 2018-10-30 18:26:25 -04:00
parent fa4e23f330
commit b8374bee5f

View File

@ -50,7 +50,6 @@
__block MVMCoreAlertObject *alert = [[MVMCoreAlertObject alloc] init];
alert.title = [responseInfo stringForKey:KeyErrorHeading];
alert.message = [responseInfo stringForKey:KeyUserMessage];
alert.alertDelegate = actionDelegate;
NSString *messageStyle = [responseInfo stringForKey:KeyMessageStyle];
if ([ValueTypeFieldErrors isEqualToString:[responseInfo string:KeyType]]) {
@ -100,6 +99,7 @@
alert.alertStyle = UIAlertControllerStyleAlert;
}
}
alert.alertDelegate = actionDelegate;
return alert;
}