   }
   
   
+  /**
+   初始化轮播图数据
+   
+   - parameter topStories: 轮播图数据
+   */
+  func setupBannerData(topStories: [TopStory]?) {
+    var imageArray: [AnyObject] = []
+    var titleArray: [String] = []
+    // 添加轮播图和标题
+    for topStory in topStories! {
+      imageArray.append(topStory.image)
+      titleArray.append(topStory.title)
+    }
+    
+    self.bannerView.imageArray = imageArray
+    self.bannerView.describeArray = titleArray
+    
+    if self.bannerView.imageArray.count > 0 {
+      self.tableView.tableHeaderView = self.bannerView
+    } else {
+      self.tableView.tableHeaderView = nil
+    }
+    
+    // 刷新tableView
+    self.reloadData()
+  }
+  
+  
   // MARK: Other methods
   
   func searchTap() {

      }.then { news -> Void in
        log.info("news=\(news.top_stories)")
        
        var imageArray: [AnyObject] = []
        var titleArray: [String] = []
        
        if let topStories = news.top_stories {
          // 添加轮播图和标题
          for topStory in topStories {
            imageArray.append(topStory.image)
            titleArray.append(topStory.title)
          }
          
          self.bannerView.imageArray = imageArray
          self.bannerView.describeArray = titleArray
          
          if imageArray.count > 0 {
            self.tableView.tableHeaderView = self.bannerView
          } else {
            self.tableView.tableHeaderView = nil
          }
          // 刷新tableView
          self.reloadData()
        }
        
      }.always {

  // MARK: Setup view
  
  func setupView() {
    // bannerView
    bannerView.delegate = self
    bannerView.backgroundColor = UIColor.flatWhiteColor()
  }
  
  
