Swift_IOS之UIActivityIndicatorView加载齿轮控件

//
//  ViewController.swift
//  helloIOS
//
//  Created by loaderman on 2019/1/25.
//  Copyright © 2019年 loaderman. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
    @IBOutlet weak var tipLoadView: UIActivityIndicatorView!
    @IBAction func stopBtn(_ sender: UIButton) {
        tipLoadView.stopAnimating()
    }
    @IBAction func startBtn(_ sender: UIButton) {
        tipLoadView.startAnimating()
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

点击开始,显示,点击停止,取消


over~~~

猜你喜欢

转载自www.cnblogs.com/loaderman/p/10322081.html
今日推荐