UIAlertController *alertController=[UIAlertController alertControllerWithTitle:title message:message preferredStyle:preferredStyle];
//设置行间距
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc]init];
paragraphStyle.alignment = NSTextAlignmentCenter;
paragraphStyle.lineSpacing = 7;//行间距
NSDictionary *attributes = @{ NSFontAttributeName:[UIFont systemFontOfSize:14], NSParagraphStyleAttributeName:paragraphStyle,NSForegroundColorAttributeName:LColor(74, 74, 74)};//字体大小 行间距 颜色
[alertController setValue: [[NSAttributedString alloc]initWithString:message attributes:attributes] forKey:@"attributedMessage"];
UIAlertAction *confirmAction=[UIAlertAction actionWithTitle:sureTitle style:UIAlertActionStyleDefault handler:confirmHandler];
[confirmAction setValue:sureColor forKey:@"_titleTextColor"];
UIAlertAction *cancleAction = [UIAlertAction actionWithTitle:cancelTitle style:UIAlertActionStyleCancel handler:cancleHandler];
[cancleAction setValue:cancleColor forKey:@"_titleTextColor"];
[alertController addAction:confirmAction];
[alertController addAction:cancleAction];
[self presentViewController:alertController animated:YES completion:nil];