             
             // 关闭下拉刷新提示
             self.refreshControl?.endRefreshing()
+            
+            //  显示刷新提醒数据
+            self.showRefreshStatus(viewModels.count)
         })
     }
+    
+    // 显示刷新数据提示方法
+    private func showRefreshStatus(count: Int) {
+        tipLabel.text = count == 0 ? "没有更多数据" : "\(count)条数据"
+        tipLabel.hidden = false
+        
+        UIView.animateWithDuration(0.5, animations: {
+            self.tipLabel.transform = CGAffineTransformMakeTranslation(0, 44)
+            }) { (bool) in
+                UIView.animateWithDuration(0.5, delay: 0.5, options: UIViewAnimationOptions(rawValue: 0), animations: {
+                    self.tipLabel.transform = CGAffineTransformIdentity
+                    }, completion: { (bool) in
+                        self.tipLabel.hidden = true
+                })
+        }
+    }
+
     
     // 接收到通知后的实现方法
     @objc private func titleChange() {

        self.refreshControl?.beginRefreshing()
        
        // 7. 添加刷新提醒
//        self.navigationController?.navigationBar.insertSubview(tipLabel, atIndex: 0)
    }
    
    deinit {

    
    /// 刷新提醒
    private lazy var tipLabel: UILabel = {
        let lb = UILabel()
        
        lb.frame = CGRectMake(0, 0, UIScreen.mainScreen().bounds.size.width, 44)
        lb.text = "没有更多的数据"
        lb.hidden = true
        lb.backgroundColor = UIColor.orangeColor()
        lb.textColor = UIColor.whiteColor()
        lb.textAlignment = .Center
        
        return lb
    }()

