0

in swift in UIKit

I have two Array in one view control Each Array has a different value

var arrTable = [ModelTap1Table]()
var arrCollection = [ModelTap1Table]()

I want to do a search for the two of them together In another view control

I made a new Array and added them to it

var arrTable = [ModelTap1Table]()
var arrCollection = [ModelTap1Table]()
var arrAllTap1 = [ModelTap1Table]()
arrAllTap1 += arrTable
arrAllTap1 += arrCollection

I made another Array in the second view

var allQuestions : [ModelTap1Table] = []

Now I want to transfer the first Array[arrAllTap1] to the second Array[allQuestions] in the other view control

So I can use the search on them all

Asr
  • 13
  • 6
  • 1
    Does this answer your question? [Passing data between view controllers](https://stackoverflow.com/questions/5210535/passing-data-between-view-controllers) – Olympiloutre Sep 17 '21 at 13:50

0 Answers0