     var timeLabel:UILabel
     let arrowImageURL:String = "http://ww4.sinaimg.cn/mw690/47449485jw1f4wq45lqu6j201i02gq2p.jpg"
     var arrowImageView:UIImageView
+    var activityIndicator:UIActivityIndicatorView
     
     override init(frame: CGRect) {
         self.refreshBlock = {}

            }else{
                if state == .ReleaseToRefresh {
                    self.state = .Loading
                    self.titleLabel.text = loadingText
                    refreshBlock()
                    self.scrollView?.startRefresh()
                }



        回收
     */
    public func finishRefresh()->Void{
        refreshHeader?.activityIndicator.stopAnimating()
        
        UIView.animateWithDuration(0.5, delay: 0, options: .CurveEaseInOut, animations: {
            self.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
            self.contentOffset = CGPointMake(0, 0)
            
        }) { (finish) in
            self.refreshHeader?.arrowImageView.hidden = false
            self.refreshHeader?.state = .PullDownToRefresh
        }
    }
