我有一个表格View,需要显示用户参与的所有好友请求(发送和接收)。但是,我能想到的唯一方法是执行两个单独的查询:一个用户名等于请求者,另一个用户名等于请求者。这是最好的路线吗?如果是这样,我该如何设置代码?我的代码在letdateString3=timePeriodFormatter.stringFromDate(pendingDates[indexPath.row])上不断使应用程序在funccellForRowAtIndexPath()上崩溃,说数组超出了范围。这是我目前所拥有的:@IBOutletweakvartableView:UITableView!overridefunc