空表视图

时间:2017-04-30 20:52:51

标签: ios uitableview firebase-realtime-database tableview cell

。这个函数没有被调用所以我有一个空的tableview如何解决这个问题?我用打印件检查了它并且打印件没有  出现

library(wordcloud2)
# Global variables can go here
n <- 1

# Define the UI
ui <- bootstrapPage(
  numericInput('size', 'Size of wordcloud', n),
  wordcloud2Output('wordcloud2')
)


# Define the server code
server <- function(input, output) {
  output$wordcloud2 <- renderWordcloud2({
    # wordcloud2(demoFreqC, size=input$size)
    wordcloud2(demoFreq, size=input$size)
  })
}
shinyApp(ui = ui, server = server)

。这是viewdidload  self.loggedinuser = FIRAuth.auth()?currentUser         self.databaseref.child(&#34; users&#34;)。child(self.loggedinuser!.uid).observeSingleEvent(of:。value){             <快照:FIRDataSnapshot)

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    let cell : feedsviewTableViewCell = tableView.dequeueReusableCell(withIdentifier: "feedsviewTableViewCell", for:indexPath) as! feedsviewTableViewCell
     print("did call")

    // Configure the cell...
   let post = posts[(self.posts.count-1) - indexPath .row]["text"] as! String

   // let post =   FIRDatabase.database().reference().child("posts").observe(.value) { (snapshot: FIRDataSnapshot) in self.posts[(self.posts.count-1) - indexPath .row]["text"] as! String

        //print((snapshot.value as! String))


cell.configure(nil, post:post,name: self.loggedinuserdata!["name"]  as! String)



   return cell

}

0 个答案:

没有答案