 
         return view
     }()
-
-    /*
-    private lazy var pullToRefreshView: PullToRefreshView = {
-
-        let pullToRefreshView = PullToRefreshView()
-        pullToRefreshView.delegate = self
-
-        self.conversationCollectionView.insertSubview(pullToRefreshView, atIndex: 0)
-
-        pullToRefreshView.translatesAutoresizingMaskIntoConstraints = false
-
-        let viewsDictionary = [
-            "pullToRefreshView": pullToRefreshView,
-            "view": self.view,
-        ]
-
-        let constraintsV = NSLayoutConstraint.constraintsWithVisualFormat("V:|-(-200)-[pullToRefreshView(200)]", options: [], metrics: nil, views: viewsDictionary)
-
-        // 非常奇怪，若直接用 "H:|[pullToRefreshView]|" 得到的实际宽度为 0
-        let constraintsH = NSLayoutConstraint.constraintsWithVisualFormat("H:|[pullToRefreshView(==view)]|", options: [], metrics: nil, views: viewsDictionary)
-
-        NSLayoutConstraint.activateConstraints(constraintsV)
-        NSLayoutConstraint.activateConstraints(constraintsH)
-
-        return pullToRefreshView
-    }()
-    */
 
     private lazy var waverView: YepWaverView = {
         let frame = self.view.bounds

    }

    func scrollViewWillEndDragging(scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>) {

        //pullToRefreshView.scrollViewWillEndDragging(scrollView, withVelocity: velocity, targetContentOffset: targetContentOffset)

        dragBeginLocation = nil
    }


                                YepAlert.alertSorry(message: NSLocalizedString("Failed to resend text!\nPlease make sure your iPhone is connected to the Internet.", comment: ""), inViewController: self)

                            }, completion: { success in
                                println("resendText: \(success)")
                            })

                        }, cancelAction: {
