//
//  ViewController.swift
//  DianXinHUD
//
//  Created by wangtian on 16/3/7.
//  Copyright 漏 2016骞?wangtian. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }
    
    //MARK: hud鏄剧ず鏃跺睆骞曡繕鍙互鍝嶅簲鐐瑰嚮
    @IBAction func beginAnimation(sender: UIButton) {
        
        if sender.tag == 1
        {
            DXHUD.showHud(remindTitle: "鍔犺浇涓?..", flag: "test", inView: self.view, confi: { (hud:DXHUD) -> () in
            
                hud.desLabel.textColor = UIColor.redColor()
           })
        }
        else if sender.tag == 2
        {
           DXHUD.hiddenHud(hudFlag: "test")
        }
    }
    
   //MARK: hud鏄剧ず鏃跺睆骞曟棤娉曞搷搴旂偣鍑?    @IBAction func showMaskHud(sender: UIButton) {
        
        DXHUD.showHud(remindTitle: "鍔犺浇涓?..", flag: "maskTest", confi: { (hud:DXHUD) -> () in
            
            hud.arcColor = UIColor.orangeColor()
            hud.desLabel.textColor = UIColor.orangeColor()
        })
    }
    
    override func didReceiveMemoryWarning()
    {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

   

}

// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com