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?
1st In VC2, you must create delegate
2nd, add the delegate to VC1
3rd, remember set VC2.delegate to VC1
4th, implement
changeToText:
in VC1wish it could help you.