I'm new iOS developer.
I have 2 viewcontroller like 2 pictures below (I'll called its VC1 and VC2):
VC1:
And VC2 is a list of printers:
Now I want every time I selected a cell in VC2 then press right bar button in top right the text label of cell will send to VC1 and display instead of EP-806A label, I've searched on internet and found solution is write a delegate to passing data. But I don't know how to write it in my case. Can someone help me, please?