         refreshHeight = CGRectGetHeight(frame)
         titleLabel = UILabel()
         timeLabel = UILabel()
+        arrowImageView = UIImageView()
+        arrowImageView.setImageWith(arrowImageURL)
         super.init(frame: frame)
         addSubview(titleLabel)
         addSubview(timeLabel)
+        addSubview(arrowImageView)
+        
         titleLabel.frame = CGRectMake(0, 0, UIScreen.screenWidth(), 40)
         titleLabel.textAlignment = .Center
+        arrowImageView.frame = CGRectMake(0, 0, 30, 40)
+//        arrowImageView.contentMode = UIViewContentMode.Center
         self.backgroundColor = UIColor.whiteColor()
     }
     

    public var loadingText:String = "Loading..."
    var titleLabel:UILabel
    var timeLabel:UILabel
    
    override init(frame: CGRect) {
        self.refreshBlock = {}

                    if self.scrollView?.contentOffset.y > -refreshHeight {
                        self.state = .PullDownToRefresh
                        self.titleLabel.text = pullDownToRefreshText
                        
                        
                        if scrollView != nil {
                            arrowImageView.transform = CGAffineTransformMakeRotation(CGFloat(M_PI) * ((self.scrollView!.contentOffset.y - 30) / (refreshHeight - 30)))
                        }
                    }else{
                        self.state = .ReleaseToRefresh
                        self.titleLabel.text = releaseToRefreshText
                        
                        arrowImageView.transform = CGAffineTransformMakeRotation(CGFloat(M_PI))
                    }
                }

