         NSNotificationCenter.defaultCenter().addObserver(self, selector: "change", name: FJPopoverAnimatorWillShow, object: nil)
         NSNotificationCenter.defaultCenter().addObserver(self, selector: "change", name: FJPopoverAnimatorWillDismiss, object: nil)
         
+        //提示微博数量的label
+        setupTipLabel()
+        
         // 3.请求数据
         setupHeaderFooterView()
+        
+        
+        
     }
     
     deinit {

//        footerView.beginRefreshing()
        
    }
}



            //2.header、footer停止刷新
            self.tableView.mj_header.endRefreshing()
//            self.tableView.mj_footer.endRefreshing()
            
            //3.显示tipLabel
            self.showTipLabelAni(models.count)
        }
    }

    
    private func showTipLabelAni(count: Int){
        //1.设置label属性
        tipLabel.hidden = false
        tipLabel.text = count == 0 ? "没有新微薄" : "\(count)条新微博"
        //2.执行动画
        UIView.animateWithDuration(1.0, animations: { () -> Void in
            
            self.tipLabel.frame.origin.y = 44
            }) { (_) -> Void in
                
                UIView.animateWithDuration(1.0, delay: 1.0, options: [], animations: { () -> Void in
                    self.tipLabel.frame.origin.y = 12
                    }, completion: { (_) -> Void in
                        self.tipLabel.hidden = true
                })
        }
        
        
    }
}
