Newer
Older
Meterage_iOS / Meterage / Utils / AlertHub.swift
//
//  AlertHub.swift
//  Meterage
//
//  Created by 203 on 2023/2/2.
//

import UIKit

class AlertHub {
    public static var shared = AlertHub()

    // 普通提示对话框
    func showWaringAlert(controller: UIViewController, message: String) {
        let alertController = UIAlertController(title: "提示", message: message, preferredStyle: .alert)
        let okAction = UIAlertAction(title: "知道了", style: .default, handler: nil)
        alertController.addAction(okAction)

        controller.present(alertController, animated: true, completion: nil)
    }
}