swift 环形进度条,显示不出来

  func onClickConfirm()
        {

        ///check if ip,username,passname is correct
           println(m_ServerAddress.text)
            //eares the space before and after

            // let REMOTE_SYNC_SERVER_URL: String = "http:/" + m_ServerAddress.text + "/spssmr/mobilesync"
            //println(REMOTE_SYNC_SERVER_URL)
                        //self.presentViewController(process, animated: true, completion: nil)

            //m_connect?.logonServer(REMOTE_SYNC_SERVER_URL, m_Username.text, m_Password.text)

            var myActivityIndicator : UIActivityIndicatorView = UIActivityIndicatorView()
            myActivityIndicator.center = self.view.center
            myActivityIndicator.hidesWhenStopped = true
            myActivityIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.Gray
            view.addSubview(myActivityIndicator)
            myActivityIndicator.startAnimating();
           myActivityIndicator.hidden = false
            m_connect?.logonServer("http://192.168.56.101/spssmr/mobilesync","admin","1")
            sleep(10)

            m_connect?.getDCProjects("http://192.168.56.101/spssmr/mobilesync")

            myActivityIndicator.stopAnimating()


        }

查看全部
wangyaninglm
shiter
2015/07/09 02:33
  • swift
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复