zoukankan      html  css  js  c++  java
  • swift UIActivityIndicatorView

    //

    //  ActivityIndicatorViewController.swift

    //  UIControlDemo

    //

    //  Created by   on 14/12/1.

    //  Copyright (c) 2014 马大哈. All rights reserved.

    //

     

    import UIKit

     

    class ActivityIndicatorViewController: BaseViewController {

        

        var waitActivity:UIActivityIndicatorView?

        

        override func viewDidLoad() {

            super.viewDidLoad()

            self.view.backgroundColor = .redColor()

     

            waitActivity = UIActivityIndicatorView(activityIndicatorStyle: .WhiteLarge)

            waitActivity?.center = CGPointMake(self.view.frame.size.width/2, self.view.frame.size.height/2)

            self.view.addSubview(waitActivity!)

            

        }

        

        override func viewWillAppear(animated: Bool) {

            waitActivity?.startAnimating()

        }

        

        override func viewDidDisappear(animated: Bool) {

            waitActivity?.stopAnimating()

        }

     

        override func didReceiveMemoryWarning() {

            super.didReceiveMemoryWarning()

            // Dispose of any resources that can be recreated.

        }

     

    }

  • 相关阅读:
    java泛型
    跨域传递
    laravel的一些语法
    去重
    laravel的一些查询语句
    mysql把之前表单进行拆分
    Laravel5.1接收json数据
    thinkphp5 composer安装验证码
    关于地图经纬度的问题
    tp5分组查询
  • 原文地址:https://www.cnblogs.com/madaha/p/4145921.html
Copyright © 2011-2022 走看看