问题描述
这是我在Firebase 创建的表格。我有一个搜索按钮。按钮动作将首先从firebase中获取数据,然后将其发送到另一个视图控制器,并将显示在一个表视图。但主要的问题是,在从Firebase获取所有数据之前,bb
$ p $ self.performSegueWithIdentifier(SearchResultPage,sender:self)
触发器,我的下一个视图控制器显示一个空的表视图。这是我的努力。
从这篇文章我认为我的代码没有放置
$ b $完成for循环后,在if块中的dataTransfer方法中写下这行代码b
self.performSegueWithIdentifier(SearchResultPage,sender:self)
This is my table created in Firebase here. I have a search button. The button action will be at first it will fetch data from firebase and then it will send it to another view controller and will show it in a table view. but main problem is that before fetching all data from Firebase
self.performSegueWithIdentifier("SearchResultPage", sender: self )
triggers and my next view controller shows a empty table view. Here was my effort here.
From this post here I think that my code is not placed well.
Write this line of code in your dataTransfer method in if block after complete for loop
self.performSegueWithIdentifier("SearchResultPage", sender: self )
这篇关于从Firebase中检索数据后,如何将检索到的数据从一个视图控制器发送到另一个视图控制器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!