How to pass different arrays in table view on click of different rows of picker view?
<p>I set a picker view and I want that when I will click on a row of picker view the table view cell label in next view controller will change according to the different rows of picker view.</p>

<p>I tried this by taking an <code>Int</code> variable and in the <code>didSelectRow</code> method of the picker view, I have done this:</p>

<pre><code>i = Int(row)
</code></pre>

<p>Then in <code>tableview cellForRowAtIndexpath</code> method I have done this:</p>

<pre><code>switch i {
case 0:
  cell.textlabel.text = "one"
case 1:
  cell.textlabel.text = "two"
</code></pre>

<p>... but it's not working.</p>

<p>Please suggest how I can do this.</p>